From 89b93b7a67edc463d1dbfc52e9d2d7f5414c1456 Mon Sep 17 00:00:00 2001 From: David Gauchard Date: Sat, 7 Jan 2023 00:09:56 +0100 Subject: [PATCH] fix printf format in updater debug messages --- cores/esp8266/Updater.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cores/esp8266/Updater.cpp b/cores/esp8266/Updater.cpp index 7ec9ca6926..91f2a9e6ae 100644 --- a/cores/esp8266/Updater.cpp +++ b/cores/esp8266/Updater.cpp @@ -248,12 +248,12 @@ bool UpdaterClass::end(bool evenIfRemaining){ uint32_t sigLen = 0; #ifdef DEBUG_UPDATER - DEBUG_UPDATER.printf_P(PSTR("[Updater] expected sigLen: %lu\n"), expectedSigLen); + DEBUG_UPDATER.printf_P(PSTR("[Updater] expected sigLen: %u\n"), expectedSigLen); #endif if (expectedSigLen > 0) { ESP.flashRead(sigLenAddr, &sigLen, SigSize); #ifdef DEBUG_UPDATER - DEBUG_UPDATER.printf_P(PSTR("[Updater] sigLen from flash: %lu\n"), sigLen); + DEBUG_UPDATER.printf_P(PSTR("[Updater] sigLen from flash: %u\n"), sigLen); #endif } @@ -272,7 +272,7 @@ bool UpdaterClass::end(bool evenIfRemaining){ } binSize -= (sigLen + SigSize); #ifdef DEBUG_UPDATER - DEBUG_UPDATER.printf_P(PSTR("[Updater] Adjusted size (without the signature and sigLen): %lu\n"), binSize); + DEBUG_UPDATER.printf_P(PSTR("[Updater] Adjusted size (without the signature and sigLen): %zu\n"), binSize); #endif }