diff --git a/src/core/lv_obj_style.c b/src/core/lv_obj_style.c index 762c21e8f0..42af196848 100644 --- a/src/core/lv_obj_style.c +++ b/src/core/lv_obj_style.c @@ -758,7 +758,7 @@ lv_observer_t * lv_obj_bind_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_ if(subject->type != LV_SUBJECT_TYPE_INT && subject->type != LV_SUBJECT_TYPE_COLOR && subject->type != LV_SUBJECT_TYPE_POINTER) { - LV_LOG_WARN("Subject type must be `int`, `color`, or `pointer` (was %"LV_PRIu32")", subject->type); + LV_LOG_WARN("Subject type must be `int`, `color`, or `pointer` (was %"LV_PRIu32")", (uint32_t) subject->type); return NULL; } @@ -1317,7 +1317,7 @@ static void bind_style_prop_observer_cb(lv_observer_t * observer, lv_subject_t * else if(subject->type == LV_SUBJECT_TYPE_COLOR) style_v.color = lv_subject_get_color(subject); else if(subject->type == LV_SUBJECT_TYPE_POINTER) style_v.ptr = lv_subject_get_pointer(subject); else { - LV_LOG_WARN("Not supported subject type (%"LV_PRIu32")", subject->type); + LV_LOG_WARN("Not supported subject type (%"LV_PRIu32")", (uint32_t) subject->type); return; }