[PATCH 1/3] imx-bbu-nand-fcb: Improve error message

Sascha Hauer s.hauer at pengutronix.de
Tue Sep 25 00:58:45 PDT 2018


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 <s.hauer at pengutronix.de>
---
 common/imx-bbu-nand-fcb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 	}
-- 
2.19.0




More information about the barebox mailing list