diff --git a/arch/arm/src/stm32h7/stm32_allocateheap.c b/arch/arm/src/stm32h7/stm32_allocateheap.c index 376738bd05a..92ce1eeaf50 100644 --- a/arch/arm/src/stm32h7/stm32_allocateheap.c +++ b/arch/arm/src/stm32h7/stm32_allocateheap.c @@ -40,6 +40,7 @@ #include #include +#include #include #include #include @@ -314,7 +315,7 @@ static void addregion (uintptr_t start, uint32_t size, const char *desc) { /* Display memory ranges to help debugging */ - minfo("%uKb of %s at %p\n", size / 1024, desc, (FAR void *)start); + minfo("%" PRIu32 "Kb of %s at %p\n", size / 1024, desc, (FAR void *)start); #if defined(CONFIG_BUILD_PROTECTED) && defined(CONFIG_MM_KERNEL_HEAP)