summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorSan Mehat <san@android.com>2009-03-21 18:48:05 -0700
committerColin Cross <ccross@android.com>2010-09-29 17:49:17 -0700
commit5572d76a4028b10c9e0f13f304ddc0a4ed0f6383 (patch)
treed805e4990d8c75ff6f0478c3d4315b891d3a4483 /block
parent32a08b5f553f54316bee6dba3ba0cd2cb50d491c (diff)
block: block_dump: Add number of sectors to debug output
Signed-off-by: San Mehat <san@android.com>
Diffstat (limited to 'block')
-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 32a1c123dfb3..677f57445fd9 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1612,11 +1612,12 @@ void submit_bio(int rw, struct bio *bio)
if (unlikely(block_dump)) {
char b[BDEVNAME_SIZE];
- printk(KERN_DEBUG "%s(%d): %s block %Lu on %s\n",
+ printk(KERN_DEBUG "%s(%d): %s block %Lu on %s (%u sectors)\n",
current->comm, task_pid_nr(current),
(rw & WRITE) ? "WRITE" : "READ",
(unsigned long long)bio->bi_sector,
- bdevname(bio->bi_bdev, b));
+ bdevname(bio->bi_bdev, b),
+ count);
}
}