From 649e979f589b4422ae7f557fe2458fae02502193 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Wed, 2 Apr 2025 09:00:23 +0200 Subject: [PATCH] arch/esp32s2/esp32s2_wdt_lowerhalf.c: fix printf warning fix printf warning: chip/esp32s2_wdt_lowerhalf.c:493:17: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' Signed-off-by: raiden00pl --- arch/xtensa/src/esp32s2/esp32s2_wdt_lowerhalf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/xtensa/src/esp32s2/esp32s2_wdt_lowerhalf.c b/arch/xtensa/src/esp32s2/esp32s2_wdt_lowerhalf.c index 018baf7f4d..31dde6059d 100644 --- a/arch/xtensa/src/esp32s2/esp32s2_wdt_lowerhalf.c +++ b/arch/xtensa/src/esp32s2/esp32s2_wdt_lowerhalf.c @@ -490,7 +490,7 @@ static int wdt_lh_settimeout(struct watchdog_lowerhalf_s *lower, if (timeout == 0 || timeout > MWDT_MAX_TIMEOUT_MS) { - wderr("Cannot represent timeout=%" PRIu32 " > %" PRIu32 "\n", + wderr("Cannot represent timeout=%" PRIu32 " > %lu\n", timeout, MWDT_MAX_TIMEOUT_MS); return -ERANGE; }