This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit c2bcc11a7f9d6f4a8dc37b7060e20b34bb120755
Author: Jorge Guzman <[email protected]>
AuthorDate: Wed Jul 29 22:51:27 2026 -0300

    arch/arm/src/stm32h7: fix LTDC format specifier for the CLUT index
    
    chromakey is a uint32_t, so printing it with %d warns.  The line is only
    compiled when CONFIG_STM32_FB_CMAP is enabled, which is why it has gone
    unnoticed.
    
    Signed-off-by: Jorge Guzman <[email protected]>
---
 arch/arm/src/stm32h7/stm32_ltdc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/src/stm32h7/stm32_ltdc.c 
b/arch/arm/src/stm32h7/stm32_ltdc.c
index c946c889300..4eeccc47035 100644
--- a/arch/arm/src/stm32h7/stm32_ltdc.c
+++ b/arch/arm/src/stm32h7/stm32_ltdc.c
@@ -30,6 +30,7 @@
 
 #include <nuttx/config.h>
 
+#include <inttypes.h>
 #include <stdint.h>
 #include <string.h>
 #include <assert.h>
@@ -2712,7 +2713,8 @@ static int stm32_setchromakey(struct fb_vtable_s *vtable,
 #  ifdef CONFIG_STM32_FB_CMAP
       if (oinfo->chromakey >= g_vtable.cmap.len)
         {
-          lcderr("ERROR: Clut index %d is out of range\n", oinfo->chromakey);
+          lcderr("ERROR: Clut index %" PRIu32 " is out of range\n",
+                 oinfo->chromakey);
           ret = -EINVAL;
         }
       else

Reply via email to