summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorakpm@osdl.org <akpm@osdl.org>2005-06-21 17:17:19 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 19:07:45 -0700
commitfc7ca163a448dfb23f44c9a47ebc8cbe52cf49df (patch)
treef13c36fa8a161b2d3721311067941a4d4a464cba /drivers
parentcdbb4cc2e5c30895709163d8544057db21ee23e0 (diff)
downloadop-kernel-dev-fc7ca163a448dfb23f44c9a47ebc8cbe52cf49df.zip
op-kernel-dev-fc7ca163a448dfb23f44c9a47ebc8cbe52cf49df.tar.gz
[PATCH] md printk fix
A u64 is not an unsigned long long. On power4 it is `long', and printk warns. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/bitmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
index 275a2aa..dd84e15 100644
--- a/drivers/md/bitmap.c
+++ b/drivers/md/bitmap.c
@@ -377,7 +377,8 @@ void bitmap_print_sb(struct bitmap *bitmap)
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", le64_to_cpu(sb->sync_size));
+ printk(KERN_DEBUG " sync size: %llu KB\n",
+ (unsigned long long)le64_to_cpu(sb->sync_size));
kunmap(bitmap->sb_page);
}
OpenPOWER on IntegriCloud