diff --git a/libs/libnx/nxfonts/nxfonts_cache.c b/libs/libnx/nxfonts/nxfonts_cache.c index 0acedc66619..e7a83439d56 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 */