chore: Use LV_PRIu32 to print uint32_t type variables (#3937)

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
This commit is contained in:
_VIFEXTech
2023-01-18 16:18:35 +08:00
committed by GitHub
parent 4365a8d0dc
commit ee9588dbc6
4 changed files with 7 additions and 7 deletions

View File

@@ -804,15 +804,15 @@ static void show_scene_report(void)
if(scene_act < 0) return;
if(scene_with_opa) {
lv_label_set_text_fmt(subtitle, "Result: %"LV_PRId32" FPS",
lv_label_set_text_fmt(subtitle, "Result: %" LV_PRIu32 " FPS",
scenes[scene_act].fps_opa);
LV_LOG("Result of \"%s + opa\": %"LV_PRId32" FPS\n", scenes[scene_act].name,
LV_LOG("Result of \"%s + opa\": %" LV_PRIu32 " FPS\n", scenes[scene_act].name,
scenes[scene_act].fps_opa);
}
else {
lv_label_set_text_fmt(subtitle, "Result: %"LV_PRId32" FPS",
lv_label_set_text_fmt(subtitle, "Result: %" LV_PRIu32 " FPS",
scenes[scene_act].fps_normal);
LV_LOG("Result of \"%s\": %"LV_PRId32" FPS\n", scenes[scene_act].name,
LV_LOG("Result of \"%s\": %" LV_PRIu32 " FPS\n", scenes[scene_act].name,
scenes[scene_act].fps_normal);
}
}