diff --git a/src/helpers/FwUpdate.cpp b/src/helpers/FwUpdate.cpp index 0d1441f0..c638192c 100644 --- a/src/helpers/FwUpdate.cpp +++ b/src/helpers/FwUpdate.cpp @@ -605,7 +605,9 @@ bool FwUpdate::checkManifest() { return false; } if (memcmp(m->base_sha, baseSha(), 32) != 0) { - strcpy(_err, "wrong base image"); + const uint8_t *b = baseSha(); + sprintf(_err, "wrong base image (pkg %02x%02x%02x%02x, node %02x%02x%02x%02x)", m->base_sha[0], + m->base_sha[1], m->base_sha[2], m->base_sha[3], b[0], b[1], b[2], b[3]); return false; } } diff --git a/src/helpers/FwUpdate.h b/src/helpers/FwUpdate.h index 1868c628..4df46283 100644 --- a/src/helpers/FwUpdate.h +++ b/src/helpers/FwUpdate.h @@ -111,7 +111,7 @@ private: uint8_t _mani[FW_OTA_MANIFEST_SIZE]; bool _flash_diff = false; char _version[48] = { 0 }; - char _err[48] = { 0 }; + char _err[64] = { 0 }; unsigned long _apply_at = 0; static constexpr uint32_t MAX_UNITS = (0xED000 - 0x27000) / FW_OTA_UNIT + 1; // whole stage uint8_t _have[(MAX_UNITS + 7) / 8];