Skip to content

Commit 8dcbdc7

Browse files
San MehatJens Axboe
authored andcommitted
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>
1 parent 175b79f commit 8dcbdc7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

block/blk-core.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,11 +1612,12 @@ void submit_bio(int rw, struct bio *bio)
16121612

16131613
if (unlikely(block_dump)) {
16141614
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",
16161616
current->comm, task_pid_nr(current),
16171617
(rw & WRITE) ? "WRITE" : "READ",
16181618
(unsigned long long)bio->bi_sector,
1619-
bdevname(bio->bi_bdev, b));
1619+
bdevname(bio->bi_bdev, b),
1620+
count);
16201621
}
16211622
}
16221623

0 commit comments

Comments
 (0)