chore(demos): fix warning (#4847)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
@@ -50,7 +50,7 @@ lv_obj_t * obj_child_node_create(lv_obj_t * par, view_t * ui)
|
||||
lv_obj_add_style(obj, &ui->obj_checked_style, LV_STATE_CHECKED);
|
||||
|
||||
lv_obj_t * label = lv_label_create(obj);
|
||||
lv_label_set_text_fmt(label, "%d", cnt);
|
||||
lv_label_set_text_fmt(label, "%" LV_PRIu32, cnt);
|
||||
lv_obj_add_flag(label, LV_OBJ_FLAG_IGNORE_LAYOUT | LV_OBJ_FLAG_FLOATING);
|
||||
lv_obj_center(label);
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ static void obj_test_task_cb(lv_timer_t * tmr)
|
||||
|
||||
if(mem_free_start == 0) mem_free_start = mon.free_size;
|
||||
|
||||
LV_LOG_USER("mem leak since start: %d, frag: %3d %%", mem_free_start - mon.free_size, mon.frag_pct);
|
||||
LV_LOG_USER("mem leak since start: %" LV_PRIu32 ", frag: %3d %%", mem_free_start - mon.free_size, mon.frag_pct);
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
|
||||
Reference in New Issue
Block a user