block: block_dump: Add number of sectors to debug output
authorSan Mehat <san@android.com>
Sun, 22 Mar 2009 01:48:05 +0000 (18:48 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 8 Feb 2010 23:09:05 +0000 (15:09 -0800)
Signed-off-by: San Mehat <san@android.com>
block/blk-core.c

index 71da5111120c09a6b52c26bf509cb4c14269aab2..ae835b42b6a38d22be304274abc8d33e0cebeaf8 100644 (file)
@@ -1569,11 +1569,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);
                }
        }