]> err.no Git - linux-2.6/commitdiff
[PATCH] md: improve debug-printing of bitmap superblock.
authorNeilBrown <neilb@cse.unsw.edu.au>
Wed, 22 Jun 2005 00:17:20 +0000 (17:17 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 02:07:45 +0000 (19:07 -0700)
- report sync_size properly  - need /2 to convert sectors to KB
- move everything over 2 spaces to allow proper spelling of
  "events cleared".

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/bitmap.c

index dd84e15fcaeaa012e723a083d2824092839a2341..f197db2ef92d7c5b62574b6684a6376629670e66 100644 (file)
@@ -363,22 +363,22 @@ void bitmap_print_sb(struct bitmap *bitmap)
                return;
        sb = (bitmap_super_t *)kmap(bitmap->sb_page);
        printk(KERN_DEBUG "%s: bitmap file superblock:\n", bmname(bitmap));
-       printk(KERN_DEBUG "       magic: %08x\n", le32_to_cpu(sb->magic));
-       printk(KERN_DEBUG "     version: %d\n", le32_to_cpu(sb->version));
-       printk(KERN_DEBUG "        uuid: %08x.%08x.%08x.%08x\n",
+       printk(KERN_DEBUG "         magic: %08x\n", le32_to_cpu(sb->magic));
+       printk(KERN_DEBUG "       version: %d\n", le32_to_cpu(sb->version));
+       printk(KERN_DEBUG "          uuid: %08x.%08x.%08x.%08x\n",
                                        *(__u32 *)(sb->uuid+0),
                                        *(__u32 *)(sb->uuid+4),
                                        *(__u32 *)(sb->uuid+8),
                                        *(__u32 *)(sb->uuid+12));
-       printk(KERN_DEBUG "      events: %llu\n",
+       printk(KERN_DEBUG "        events: %llu\n",
                        (unsigned long long) le64_to_cpu(sb->events));
-       printk(KERN_DEBUG "events_clred: %llu\n",
+       printk(KERN_DEBUG "events cleared: %llu\n",
                        (unsigned long long) le64_to_cpu(sb->events_cleared));
-       printk(KERN_DEBUG "       state: %08x\n", le32_to_cpu(sb->state));
-       printk(KERN_DEBUG "   chunksize: %d B\n", le32_to_cpu(sb->chunksize));
-       printk(KERN_DEBUG "daemon sleep: %ds\n", le32_to_cpu(sb->daemon_sleep));
-       printk(KERN_DEBUG "   sync size: %llu KB\n",
-                       (unsigned long long)le64_to_cpu(sb->sync_size));
+       printk(KERN_DEBUG "         state: %08x\n", le32_to_cpu(sb->state));
+       printk(KERN_DEBUG "     chunksize: %d B\n", le32_to_cpu(sb->chunksize));
+       printk(KERN_DEBUG "  daemon sleep: %ds\n", le32_to_cpu(sb->daemon_sleep));
+       printk(KERN_DEBUG "     sync size: %llu KB\n",
+                       (unsigned long long)le64_to_cpu(sb->sync_size)/2);
        kunmap(bitmap->sb_page);
 }