mtd: parsers: bcm47xxpart: print correct offset on read error
PATCH 1/1 mtd: parsers: bcm47xxpart: print correct offset on read error
From: Rafał Miłecki <[email protected]>
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]>
--- drivers/mtd/parsers/bcm47xxpart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/parsers/bcm47xxpart.c +1 -1
@@ -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 ; }
Signature · 6 lines
2.34.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
Quoted 6 lines · On Thu, 2022-03-17 at 11:43:16 UTC, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= wrote:
From: Rafał Miłecki <[email protected]>
mtd_read()gets called with offset +0x8000as argument so use the same value inpr_err().Signed-off-by Rafał Miłecki <[email protected]>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/