diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-12 06:40:52 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-12 08:28:04 +0200 |
commit | 92a5a43ac7127c9616b369e90faec718c42ec7c7 (patch) | |
tree | 1ad15c0843f0d1b365f032bfa5a9a91aab8f0aec /common | |
parent | a10366acd8e509cb65c8645775325c882ba5a55a (diff) | |
download | barebox-92a5a43ac7127c9616b369e90faec718c42ec7c7.tar.gz barebox-92a5a43ac7127c9616b369e90faec718c42ec7c7.tar.xz |
imx-bbu-nand-fcb: Fix debug messages
We should print the block number before increasing it, not afterwards.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/imx-bbu-nand-fcb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/imx-bbu-nand-fcb.c b/common/imx-bbu-nand-fcb.c index d2bfedbad5..5b984d4148 100644 --- a/common/imx-bbu-nand-fcb.c +++ b/common/imx-bbu-nand-fcb.c @@ -275,8 +275,8 @@ static int imx6_bbu_erase(struct mtd_info *mtd) while (len > 0) { pr_debug("erasing at 0x%08llx\n", offset); if (mtd_block_isbad(mtd, offset)) { - offset += mtd->erasesize; pr_debug("erase skip block @ 0x%08llx\n", offset); + offset += mtd->erasesize; continue; } @@ -308,9 +308,9 @@ static int imx6_bbu_write_firmware(struct mtd_info *mtd, int block, void *buf, s buf, offset, len); if (mtd_block_isbad(mtd, offset)) { + pr_debug("write skip block @ 0x%08llx\n", offset); offset += mtd->erasesize; block++; - pr_debug("write skip block @ 0x%08llx\n", offset); continue; } |