From: San Mehat Date: Tue, 14 Sep 2010 06:48:01 +0000 (+0200) Subject: block: block_dump: Add number of sectors to debug output X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8dcbdc742fec9e6c542ff9cb599d2ee620753d07;p=openwrt%2Fstaging%2Fblogic.git block: block_dump: Add number of sectors to debug output Signed-off-by: San Mehat Signed-off-by: Linus Walleij Signed-off-by: Jens Axboe --- 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) 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); } }