1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(sysmon): fix build error when LV_USE_PERF_MONITOR_LOG_MODE is enabled (#5597)

This commit is contained in:
Gabor Kiss-Vamosi 2024-02-05 10:34:33 +01:00 committed by GitHub
parent 4f3c5e0355
commit 33260fba35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -216,10 +216,10 @@ static void perf_observer_cb(lv_observer_t * observer, lv_subject_t * subject)
#if LV_USE_PERF_MONITOR_LOG_MODE #if LV_USE_PERF_MONITOR_LOG_MODE
LV_UNUSED(label); LV_UNUSED(label);
LV_LOG("sysmon: " LV_LOG("sysmon: "
"%" LV_PRIu32 " FPS (refr_cnt: %" LV_PRIu32 " | redraw_cnt: %" LV_PRIu32 " | flush_cnt: %" LV_PRIu32 "), " "%" LV_PRIu32 " FPS (refr_cnt: %" LV_PRIu32 " | redraw_cnt: %" LV_PRIu32"), "
"refr %" LV_PRIu32 "ms (render %" LV_PRIu32 "ms | flush %" LV_PRIu32 "ms), " "refr %" LV_PRIu32 "ms (render %" LV_PRIu32 "ms | flush %" LV_PRIu32 "ms), "
"CPU %" LV_PRIu32 "%%\n", "CPU %" LV_PRIu32 "%%\n",
perf->calculated.fps, perf->measured.refr_cnt, perf->measured.render_cnt, perf->measured.flush_cnt, perf->calculated.fps, perf->measured.refr_cnt, perf->measured.render_cnt,
perf->calculated.refr_avg_time, perf->calculated.render_avg_time, perf->calculated.flush_avg_time, perf->calculated.refr_avg_time, perf->calculated.render_avg_time, perf->calculated.flush_avg_time,
perf->calculated.cpu); perf->calculated.cpu);
#else #else