diff options
author | Benedikt Spranger <b.spranger@linutronix.de> | 2024-10-18 10:30:03 +0200 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@linaro.org> | 2024-11-29 12:59:27 +0200 |
commit | 11da3c67e36551a4cd207abb029fec3560cc4f88 (patch) | |
tree | e896cc85a1c517a10ebc90ae36c9d33ef47fd521 | |
parent | f0dab28915b7890d5a7d958bc4b6f9b61f535cb4 (diff) |
drivers/mtd/ubispl/ubispl.c: Fix error message
The bad CRC error message has transposed characters, which render the
output useless:
"bad CRC at record 213: #08x, not #08x" instead of
"bad CRC at record 213: #00000000, not #4be31f4d"
Fix the error message.
Signed-off-by: Benedikt Spranger <b.spranger@linutronix.de>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
-rw-r--r-- | drivers/mtd/ubispl/ubispl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubispl/ubispl.c b/drivers/mtd/ubispl/ubispl.c index 90a7c4c6f9e..9face5fae15 100644 --- a/drivers/mtd/ubispl/ubispl.c +++ b/drivers/mtd/ubispl/ubispl.c @@ -113,7 +113,7 @@ static int vtbl_check(struct ubi_scan_info *ubi, crc = crc32(UBI_CRC32_INIT, &vtbl[i], UBI_VTBL_RECORD_SIZE_CRC); if (be32_to_cpu(vtbl[i].crc) != crc) { - ubi_err("bad CRC at record %u: %#08x, not %#08x", + ubi_err("bad CRC at record %u: #%08x, not #%08x", i, crc, be32_to_cpu(vtbl[i].crc)); ubi_dump_vtbl_record(&vtbl[i], i); return 1; |