diff --git a/subsys/storage/flash_map/flash_map_shell.c b/subsys/storage/flash_map/flash_map_shell.c index 95ffd453e78..2d30c5bec3b 100644 --- a/subsys/storage/flash_map/flash_map_shell.c +++ b/subsys/storage/flash_map/flash_map_shell.c @@ -12,6 +12,7 @@ #include #include #include +#include #define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL @@ -25,7 +26,7 @@ static void fa_cb(const struct flash_area *fa, void *user_data) shell_print(shell, "%-4d %-8d %-20s 0x%-10x 0x%-12x", fa->fa_id, fa->fa_device_id, fa->fa_dev->name, - fa->fa_off, fa->fa_size); + (uint32_t) fa->fa_off, fa->fa_size); } static int cmd_flash_map_list(const struct shell *shell, size_t argc,