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 <jorge.gzm@gmail.com>
This commit is contained in:
Jorge Guzman 2026-07-29 22:51:27 -03:00
parent 4bcd105610
commit 5ef00dc717

View file

@ -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