1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

fix printf format in updater debug messages (#8791)

This commit is contained in:
david gauchard 2023-01-07 00:31:01 +01:00 committed by GitHub
parent a276195731
commit a79b8f219c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,12 +248,12 @@ bool UpdaterClass::end(bool evenIfRemaining){
uint32_t sigLen = 0; uint32_t sigLen = 0;
#ifdef DEBUG_UPDATER #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 #endif
if (expectedSigLen > 0) { if (expectedSigLen > 0) {
ESP.flashRead(sigLenAddr, &sigLen, SigSize); ESP.flashRead(sigLenAddr, &sigLen, SigSize);
#ifdef DEBUG_UPDATER #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 #endif
} }
@ -272,7 +272,7 @@ bool UpdaterClass::end(bool evenIfRemaining){
} }
binSize -= (sigLen + SigSize); binSize -= (sigLen + SigSize);
#ifdef DEBUG_UPDATER #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 #endif
} }