Skip to content

Commit a79b8f2

Browse files
authored
fix printf format in updater debug messages (#8791)
1 parent a276195 commit a79b8f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cores/esp8266/Updater.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,12 @@ bool UpdaterClass::end(bool evenIfRemaining){
248248
uint32_t sigLen = 0;
249249

250250
#ifdef DEBUG_UPDATER
251-
DEBUG_UPDATER.printf_P(PSTR("[Updater] expected sigLen: %lu\n"), expectedSigLen);
251+
DEBUG_UPDATER.printf_P(PSTR("[Updater] expected sigLen: %u\n"), expectedSigLen);
252252
#endif
253253
if (expectedSigLen > 0) {
254254
ESP.flashRead(sigLenAddr, &sigLen, SigSize);
255255
#ifdef DEBUG_UPDATER
256-
DEBUG_UPDATER.printf_P(PSTR("[Updater] sigLen from flash: %lu\n"), sigLen);
256+
DEBUG_UPDATER.printf_P(PSTR("[Updater] sigLen from flash: %u\n"), sigLen);
257257
#endif
258258
}
259259

@@ -272,7 +272,7 @@ bool UpdaterClass::end(bool evenIfRemaining){
272272
}
273273
binSize -= (sigLen + SigSize);
274274
#ifdef DEBUG_UPDATER
275-
DEBUG_UPDATER.printf_P(PSTR("[Updater] Adjusted size (without the signature and sigLen): %lu\n"), binSize);
275+
DEBUG_UPDATER.printf_P(PSTR("[Updater] Adjusted size (without the signature and sigLen): %zu\n"), binSize);
276276
#endif
277277
}
278278

0 commit comments

Comments
 (0)