libs/libnx/nxfonts/nxfonts_cache.c: Fix syslog formats

Note: the width of nxgl_mxpixel_t depends on configuration.
This commit is contained in:
YAMAMOTO Takashi 2020-11-26 10:12:20 +09:00 committed by Xiang Xiao
parent be4ce99410
commit a2a30c8813
1 changed files with 5 additions and 4 deletions

View File

@ -25,6 +25,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <sys/types.h> #include <sys/types.h>
#include <stdint.h>
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
@ -587,8 +588,8 @@ static FAR struct nxfonts_fcache_s *
{ {
FAR struct nxfonts_fcache_s *fcache; FAR struct nxfonts_fcache_s *fcache;
ginfo("fontid=%d fgcolor=%u bgcolor=%u bpp=%d\n", ginfo("fontid=%d fgcolor=%ju bgcolor=%ju bpp=%d\n",
fontid, fgcolor, bgcolor, bpp); fontid, (uintmax_t)fgcolor, (uintmax_t)bgcolor, bpp);
/* Search for a cache for this font characteristics */ /* 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; FAR struct nxfonts_fcache_s *priv;
int errcode; int errcode;
ginfo("fontid=%d fgcolor=%u bgcolor=%u bpp=%d maxglyphs=%d\n", ginfo("fontid=%d fgcolor=%ju bgcolor=%ju bpp=%d maxglyphs=%d\n",
fontid, fgcolor, bgcolor, bpp, maxglyphs); fontid, (uintmax_t)fgcolor, (uintmax_t)bgcolor, bpp, maxglyphs);
/* Get exclusive access to the font cache list */ /* Get exclusive access to the font cache list */