aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
diff options
context:
space:
mode:
authorSan Mehat <san@android.com>2010-09-14 02:48:01 -0400
committerJens Axboe <jaxboe@fusionio.com>2010-09-14 02:48:01 -0400
commit8dcbdc742fec9e6c542ff9cb599d2ee620753d07 (patch)
tree45e7a5f4be8c27773d303d66fe316e491bbf800f /block/blk-core.c
parent175b79f0632544d62aae72e5496c14e3e3ff2ae7 (diff)
block: block_dump: Add number of sectors to debug output
Signed-off-by: San Mehat <san@android.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r--block/blk-core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index ee1a1e7e63cc..8d07c1b7e701 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1612,11 +1612,12 @@ void submit_bio(int rw, struct bio *bio)
1612 1612
1613 if (unlikely(block_dump)) { 1613 if (unlikely(block_dump)) {
1614 char b[BDEVNAME_SIZE]; 1614 char b[BDEVNAME_SIZE];
1615 printk(KERN_DEBUG "%s(%d): %s block %Lu on %s\n", 1615 printk(KERN_DEBUG "%s(%d): %s block %Lu on %s (%u sectors)\n",
1616 current->comm, task_pid_nr(current), 1616 current->comm, task_pid_nr(current),
1617 (rw & WRITE) ? "WRITE" : "READ", 1617 (rw & WRITE) ? "WRITE" : "READ",
1618 (unsigned long long)bio->bi_sector, 1618 (unsigned long long)bio->bi_sector,
1619 bdevname(bio->bi_bdev, b)); 1619 bdevname(bio->bi_bdev, b),
1620 count);
1620 } 1621 }
1621 } 1622 }
1622 1623