From 4065c3bfc1b3fe090299bb2cc396ea58ee515bb6 Mon Sep 17 00:00:00 2001 From: hiruna Date: Sat, 27 May 2023 13:08:59 +1000 Subject: [PATCH] fix esp_log fmt --- lvgl_i2c/i2c_manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lvgl_i2c/i2c_manager.c b/lvgl_i2c/i2c_manager.c index 6780d9f..e7f8f01 100644 --- a/lvgl_i2c/i2c_manager.c +++ b/lvgl_i2c/i2c_manager.c @@ -168,7 +168,7 @@ esp_err_t I2C_FN(_init)(i2c_port_t port) { ESP_LOGW(TAG, "If it was already open, we'll use it with whatever settings were used " "to open it. See I2C Manager README for details."); } else { - ESP_LOGI(TAG, "Initialised port %d (SDA: %d, SCL: %d, speed: %d Hz.)", + ESP_LOGI(TAG, "Initialised port %d (SDA: %d, SCL: %d, speed: %lu Hz.)", port, conf.sda_io_num, conf.scl_io_num, conf.master.clk_speed); } @@ -186,7 +186,7 @@ esp_err_t I2C_FN(_read)(i2c_port_t port, uint16_t addr, uint32_t reg, uint8_t *b // May seem weird, but init starts with a check if it's needed, no need for that check twice. I2C_FN(_init)(port); - ESP_LOGV(TAG, "Reading port %d, addr 0x%03x, reg 0x%04x", port, addr, reg); + ESP_LOGV(TAG, "Reading port %d, addr 0x%03x, reg 0x%04lx", port, addr, reg); TickType_t timeout = 0; #if defined (I2C_ZERO) @@ -239,7 +239,7 @@ esp_err_t I2C_FN(_write)(i2c_port_t port, uint16_t addr, uint32_t reg, const uin // May seem weird, but init starts with a check if it's needed, no need for that check twice. I2C_FN(_init)(port); - ESP_LOGV(TAG, "Writing port %d, addr 0x%03x, reg 0x%04x", port, addr, reg); + ESP_LOGV(TAG, "Writing port %d, addr 0x%03x, reg 0x%04lx", port, addr, reg); TickType_t timeout = 0; #if defined (I2C_ZERO)