arch/arm/src/lpc54xx/lpc54_lcd.c: Fix syslog formats

Note: the width of nxgl_mxpixel_t depends on configuration.
This commit is contained in:
YAMAMOTO Takashi 2020-11-28 09:35:14 +09:00 committed by Xiang Xiao
parent a77b402f38
commit c5062fc9ab

View File

@ -902,16 +902,16 @@ void lpc54_lcdclear(nxgl_mxpixel_t color)
#if LPC54_BPP > 16
uint32_t *dest = (uint32_t *)CONFIG_LPC54_LCD_VRAMBASE;
lcdinfo("Clearing display: color=%08x VRAM=%08x size=%d\n",
color, CONFIG_LPC54_LCD_VRAMBASE,
lcdinfo("Clearing display: color=%08jx VRAM=%08x size=%d\n",
(uintmax_t)color, CONFIG_LPC54_LCD_VRAMBASE,
CONFIG_LPC54_LCD_HWIDTH * CONFIG_LPC54_LCD_VHEIGHT *
sizeof(uint32_t));
#else
uint16_t *dest = (uint16_t *)CONFIG_LPC54_LCD_VRAMBASE;
lcdinfo("Clearing display: color=%08x VRAM=%08x size=%d\n",
color, CONFIG_LPC54_LCD_VRAMBASE,
lcdinfo("Clearing display: color=%08jx VRAM=%08x size=%d\n",
(uintmax_t)color, CONFIG_LPC54_LCD_VRAMBASE,
CONFIG_LPC54_LCD_HWIDTH * CONFIG_LPC54_LCD_VHEIGHT *
sizeof(uint16_t));
#endif