[PATCH 15/30] ocfs2: build warnings fix

From: Mark Fasheh
Date: Thu Jan 17 2008 - 17:41:45 EST


Fix these types of warnings:

fs/ocfs2/resize.c: In function âocfs2_group_extendâ:
fs/ocfs2/resize.c:358: warning: format â%lluâ expects type âlong long
unsigned intâ, but argument 6 has type âlong unsigned intâ

u64 needs to be casted to unsigned long long when printing as %llu

Signed-off-by: Mark Fasheh <mark.fasheh@xxxxxxxxxx>
---
fs/ocfs2/resize.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/ocfs2/resize.c b/fs/ocfs2/resize.c
index ba305c1..84e06b6 100644
--- a/fs/ocfs2/resize.c
+++ b/fs/ocfs2/resize.c
@@ -356,7 +356,7 @@ int ocfs2_group_extend(struct inode * inode, int new_clusters)
}

mlog(0, "extend the last group at %llu, new clusters = %d\n",
- le64_to_cpu(group->bg_blkno), new_clusters);
+ (unsigned long long)le64_to_cpu(group->bg_blkno), new_clusters);

handle = ocfs2_start_trans(osb, OCFS2_GROUP_EXTEND_CREDITS);
if (IS_ERR(handle)) {
@@ -547,7 +547,7 @@ int ocfs2_group_add(struct inode *inode, struct ocfs2_new_group_input *input)
ret = ocfs2_read_block(osb, input->group, &group_bh, 0, NULL);
if (ret < 0) {
mlog(ML_ERROR, "Can't read the group descriptor # %llu "
- "from the device.", input->group);
+ "from the device.", (unsigned long long)input->group);
goto out;
}

@@ -560,7 +560,7 @@ int ocfs2_group_add(struct inode *inode, struct ocfs2_new_group_input *input)
}

mlog(0, "Add a new group %llu in chain = %u, length = %u\n",
- input->group, input->chain, input->clusters);
+ (unsigned long long)input->group, input->chain, input->clusters);

handle = ocfs2_start_trans(osb, OCFS2_GROUP_ADD_CREDITS);
if (IS_ERR(handle)) {
--
1.5.3.6

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/