block: block_dump: Add number of sectors to debug output
authorSan Mehat <san@android.com>
Tue, 14 Sep 2010 06:48:01 +0000 (08:48 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 14 Sep 2010 06:48:01 +0000 (08:48 +0200)
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>
block/blk-core.c

index ee1a1e7..8d07c1b 100644 (file)
@@ -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);
                }
        }