From a2a30c8813fc9444ccc9da2b7c9cdcb1f7fafdf8 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 26 Nov 2020 10:12:20 +0900 Subject: [PATCH] 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 0acedc6661..e7a83439d5 100644 --- a/libs/libnx/nxfonts/nxfonts_cache.c +++ b/libs/libnx/nxfonts/nxfonts_cache.c @@ -25,6 +25,7 @@ #include #include +#include #include #include #include @@ -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 */