Skip to content

Commit

Permalink
block: block_dump: Add number of sectors to debug output
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
San Mehat authored and Jens Axboe committed Sep 14, 2010
1 parent 175b79f commit 8dcbdc7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 8dcbdc7

Please sign in to comment.