diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-09-24 16:48:52 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-09-25 09:48:14 +0200 |
commit | ef72ed592df2fe7b83c3f5a8643a2d3c0e971bd7 (patch) | |
tree | c4d519267f0f2619c95de3a6aa82b48d1fb4c7e8 /common | |
parent | 43ed32377efef73e42c8f635c76d917315849641 (diff) | |
download | barebox-ef72ed592df2fe7b83c3f5a8643a2d3c0e971bd7.tar.gz barebox-ef72ed592df2fe7b83c3f5a8643a2d3c0e971bd7.tar.xz |
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/imx-bbu-nand-fcb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |