From ef72ed592df2fe7b83c3f5a8643a2d3c0e971bd7 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 24 Sep 2018 16:48:52 +0200 Subject: imx-bbu-nand-fcb: Improve error message When printing that a FCB is not readable it's interesting to know which one is not readable. Print the block number in the message. Signed-off-by: Sascha Hauer --- common/imx-bbu-nand-fcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/imx-bbu-nand-fcb.c') diff --git a/common/imx-bbu-nand-fcb.c b/common/imx-bbu-nand-fcb.c index 2c8ca97926..5535a92d54 100644 --- a/common/imx-bbu-nand-fcb.c +++ b/common/imx-bbu-nand-fcb.c @@ -459,7 +459,7 @@ static int read_fcb(struct mtd_info *mtd, int num, struct fcb_block **retfcb) fcb = read_fcb_hamming_13_8(rawpage); if (IS_ERR(fcb)) { - pr_err("Cannot read fcb\n"); + pr_err("Cannot read fcb on block %d\n", num); ret = PTR_ERR(fcb); goto err; } -- cgit v1.2.3