Skip to content

Commit 8ea7b11

Browse files
JiafeiPancfriedt
authored andcommitted
modules: lvgl: fix build warning for print format
Fix the following building warning: modules/lvgl/lvgl_shell.c:62:41: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] Signed-off-by: Jiafei Pan <[email protected]>
1 parent 077b41d commit 8ea7b11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/lvgl/lvgl_shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static void dump_monkey_info(const struct shell *sh)
5959
shell_print(sh, "id device active");
6060
for (size_t i = 0; i < CONFIG_LV_Z_MAX_MONKEY_COUNT; i++) {
6161
if (lvgl_monkeys[i] != NULL) {
62-
shell_print(sh, "%-4u %-9s %-3s", i,
62+
shell_print(sh, "%-4zu %-9s %-3s", i,
6363
lvgl_monkey_indev_as_string(lvgl_monkeys[i]),
6464
lv_monkey_get_enable(lvgl_monkeys[i]) ? "yes" : "no");
6565
}

0 commit comments

Comments
 (0)