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>
(cherry picked from commit 11da3c67e3)
This commit is contained in:
committed by
Simon Glass
parent
7bf9e26c94
commit
c472aeaf7d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user