This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit a2a30c8813fc9444ccc9da2b7c9cdcb1f7fafdf8 Author: YAMAMOTO Takashi <yamam...@midokura.com> AuthorDate: Thu Nov 26 10:12:20 2020 +0900 libs/libnx/nxfonts/nxfonts_cache.c: Fix syslog formats Note: the width of nxgl_mxpixel_t depends on configuration. --- libs/libnx/nxfonts/nxfonts_cache.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libs/libnx/nxfonts/nxfonts_cache.c b/libs/libnx/nxfonts/nxfonts_cache.c index 0acedc6..e7a8343 100644 --- a/libs/libnx/nxfonts/nxfonts_cache.c +++ b/libs/libnx/nxfonts/nxfonts_cache.c @@ -25,6 +25,7 @@ #include <nuttx/config.h> #include <sys/types.h> +#include <stdint.h> #include <string.h> #include <assert.h> #include <errno.h> @@ -587,8 +588,8 @@ static FAR struct nxfonts_fcache_s * { FAR struct nxfonts_fcache_s *fcache; - ginfo("fontid=%d fgcolor=%u bgcolor=%u bpp=%d\n", - fontid, fgcolor, bgcolor, bpp); + ginfo("fontid=%d fgcolor=%ju bgcolor=%ju bpp=%d\n", + fontid, (uintmax_t)fgcolor, (uintmax_t)bgcolor, bpp); /* Search for a cache for this font characteristics */ @@ -646,8 +647,8 @@ FCACHE nxf_cache_connect(enum nx_fontid_e fontid, FAR struct nxfonts_fcache_s *priv; int errcode; - ginfo("fontid=%d fgcolor=%u bgcolor=%u bpp=%d maxglyphs=%d\n", - fontid, fgcolor, bgcolor, bpp, maxglyphs); + ginfo("fontid=%d fgcolor=%ju bgcolor=%ju bpp=%d maxglyphs=%d\n", + fontid, (uintmax_t)fgcolor, (uintmax_t)bgcolor, bpp, maxglyphs); /* Get exclusive access to the font cache list */