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