You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/28 05:39:03 UTC

[incubator-nuttx] 10/24: arch/arm/src/lpc54xx/lpc54_lcd.c: Fix syslog formats

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 c5062fc9ab3ba0049e0b4ea132c28a2a2e1fa719
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Sat Nov 28 09:35:14 2020 +0900

    arch/arm/src/lpc54xx/lpc54_lcd.c: Fix syslog formats
    
    Note: the width of nxgl_mxpixel_t depends on configuration.
---
 arch/arm/src/lpc54xx/lpc54_lcd.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/src/lpc54xx/lpc54_lcd.c b/arch/arm/src/lpc54xx/lpc54_lcd.c
index dd68b88..31ebbd7 100644
--- a/arch/arm/src/lpc54xx/lpc54_lcd.c
+++ b/arch/arm/src/lpc54xx/lpc54_lcd.c
@@ -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