diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-02-10 09:54:02 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-02-10 09:58:23 +0100 |
commit | c7dbb6c6895d83117984b746cb56b58b0ee21ba2 (patch) | |
tree | f1373f31610d1eb6dd2df51c4c8d0b7c2ed930cc | |
parent | ce073eb9e4b9690caf44f1be79aea976c9cfcdac (diff) | |
download | barebox-c7dbb6c6895d83117984b746cb56b58b0ee21ba2.tar.gz barebox-c7dbb6c6895d83117984b746cb56b58b0ee21ba2.tar.xz |
mtd: nand-bb: Also print raw position in debug messages
When debugging the nand-bb devices also the raw position on the
device is interesting, print it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/mtd/nand/nand-bb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mtd/nand/nand-bb.c b/drivers/mtd/nand/nand-bb.c index c8f6988250..23957c358e 100644 --- a/drivers/mtd/nand/nand-bb.c +++ b/drivers/mtd/nand/nand-bb.c @@ -54,7 +54,8 @@ static ssize_t nand_bb_read(struct cdev *cdev, void *buf, size_t count, size_t retlen; int ret, bytes = 0, now; - debug("%s 0x%08llx %d\n", __func__, offset, count); + debug("%s offset: 0x%08llx (raw: 0x%08llx) count: 0x%08x\n", + __func__, offset, bb->offset, count); while (count) { loff_t max = bb->mtd->size - bb->offset; @@ -131,7 +132,8 @@ static ssize_t nand_bb_write(struct cdev *cdev, const void *buf, size_t count, struct nand_bb *bb = cdev->priv; int bytes = count, now, wroffs, ret; - debug("%s offset: 0x%08llx count: 0x%08x\n", __func__, offset, count); + debug("%s offset: 0x%08llx (raw: 0x%08llx) count: 0x%08x\n", + __func__, offset, bb->offset, count); while (count) { wroffs = bb->offset % BB_WRITEBUF_SIZE; |