diff --git a/main/ota.c b/main/ota.c index f67ab92a..695e2d6d 100644 --- a/main/ota.c +++ b/main/ota.c @@ -43,7 +43,9 @@ void ota_task(void *data) pt_new = esp_ota_get_next_update_partition(NULL); if (pt_boot != pt_cur) { - ESP_LOGW(TAG, "boot partition (offset='0x%08lu') does not match running partition (offset='0x%08lu')", + ESP_LOGW(TAG, + "boot partition (offset='0x%08" PRIu32 "') does not match running partition (offset='0x%08" PRIu32 + "')", pt_boot->address, pt_cur->address); } diff --git a/main/system.c b/main/system.c index ba3c2f98..de251db9 100644 --- a/main/system.c +++ b/main/system.c @@ -86,10 +86,10 @@ void restart_delayed(void) delay = 6; } - ESP_LOGI(TAG, "restarting after %lu seconds", delay); + ESP_LOGI(TAG, "restarting after %" PRIu32 " seconds", delay); if (lvgl_port_lock(lvgl_lock_timeout)) { - lv_label_set_text_fmt(lbl_ln4, "Restarting in %lu seconds", delay); + lv_label_set_text_fmt(lbl_ln4, "Restarting in %" PRIu32 " seconds", delay); lv_obj_clear_flag(lbl_ln4, LV_OBJ_FLAG_HIDDEN); lvgl_port_unlock(); } diff --git a/main/was.c b/main/was.c index 193bffbe..9d3f4ee0 100644 --- a/main/was.c +++ b/main/was.c @@ -343,7 +343,7 @@ static void IRAM_ATTR cb_ws_event(const void *arg_evh, const esp_event_base_t *b init_was(); break; default: - ESP_LOGD(TAG, "unhandled WebSocket event - ID: %lu", id_ev); + ESP_LOGD(TAG, "unhandled WebSocket event - ID: %" PRIu32, id_ev); break; } }