aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafał Miłecki <[email protected]>2022-03-17 12:43:16 +0100
committerMiquel Raynal <[email protected]>2022-04-04 10:33:11 +0200
commit4c38eded807043f40f4dc49da6df097f9dcac393 (patch)
tree10661707cdafa879e2562e4263b84a8bb97e3050
parent3123109284176b1532874591f7c81f3837bbdc17 (diff)
mtd: parsers: bcm47xxpart: print correct offset on read error
mtd_read() gets called with offset + 0x8000 as argument so use the same value in pr_err(). Signed-off-by: Rafał Miłecki <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
-rw-r--r--drivers/mtd/parsers/bcm47xxpart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/parsers/bcm47xxpart.c b/drivers/mtd/parsers/bcm47xxpart.c
index 6012a10f10c8..50fcf4c2174b 100644
--- a/drivers/mtd/parsers/bcm47xxpart.c
+++ b/drivers/mtd/parsers/bcm47xxpart.c
@@ -237,7 +237,7 @@ static int bcm47xxpart_parse(struct mtd_info *master,
(uint8_t *)buf);
if (err && !mtd_is_bitflip(err)) {
pr_err("mtd_read error while parsing (offset: 0x%X): %d\n",
- offset, err);
+ offset + 0x8000, err);
continue;
}