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)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:17 +0000 (17:49 -0700)
Signed-off-by: San Mehat <san@android.com>
block/blk-core.c

index 32a1c123dfb36a5fff24857221a9a4d1b79131bf..677f57445fd96a548c7db4b8ffaf0aeebb80d2f2 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);
                }
        }