提交 fc7ca163 编写于 作者: A akpm@osdl.org 提交者: Linus Torvalds

[PATCH] md printk fix

A u64 is not an unsigned long long.  On power4 it is `long', and printk warns.
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 cdbb4cc2
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册