From 5ef00dc71762cb6f697c8cee9fb07c792416f42f Mon Sep 17 00:00:00 2001 From: Jorge Guzman Date: Wed, 29 Jul 2026 22:51:27 -0300 Subject: [PATCH] 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 --- 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 +#include #include #include #include @@ -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