From 5d2e0f8c80cb0f64040d80ca0b1dbbdb21095574 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Wed, 2 Apr 2025 10:44:10 +0200 Subject: [PATCH] arch/esp32s3/esp32s3_wdt_lowerhalf.c: fix printf warning fix printf warning: chip/esp32s3_wdt_lowerhalf.c:497: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/esp32s3/esp32s3_wdt_lowerhalf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/xtensa/src/esp32s3/esp32s3_wdt_lowerhalf.c b/arch/xtensa/src/esp32s3/esp32s3_wdt_lowerhalf.c index 8a73161f0f..4c19e449ca 100644 --- a/arch/xtensa/src/esp32s3/esp32s3_wdt_lowerhalf.c +++ b/arch/xtensa/src/esp32s3/esp32s3_wdt_lowerhalf.c @@ -494,7 +494,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; }