aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/xattr.c
diff options
context:
space:
mode:
authorMark Fasheh <mfasheh@suse.com>2008-08-19 13:54:29 -0400
committerMark Fasheh <mfasheh@suse.com>2008-10-13 19:57:03 -0400
commitff1ec20ef65d51cc3466e86912cdeaac16f3aaa0 (patch)
tree2c5859e0f8e502ede6110397062208afe0641ad6 /fs/ocfs2/xattr.c
parent8154da3d2114241cf3edb108b43e2172be86d483 (diff)
ocfs2: fix printk format warnings
This patch fixes the following build warnings: fs/ocfs2/xattr.c: In function 'ocfs2_half_xattr_bucket': fs/ocfs2/xattr.c:3282: warning: format '%d' expects type 'int', but argument 7 has type 'long int' fs/ocfs2/xattr.c:3282: warning: format '%d' expects type 'int', but argument 8 has type 'long int' fs/ocfs2/xattr.c:3282: warning: format '%d' expects type 'int', but argument 7 has type 'long int' fs/ocfs2/xattr.c:3282: warning: format '%d' expects type 'int', but argument 8 has type 'long int' fs/ocfs2/xattr.c:3282: warning: format '%d' expects type 'int', but argument 7 has type 'long int' fs/ocfs2/xattr.c:3282: warning: format '%d' expects type 'int', but argument 8 has type 'long int' fs/ocfs2/xattr.c: In function 'ocfs2_xattr_set_entry_in_bucket': fs/ocfs2/xattr.c:4092: warning: format '%d' expects type 'int', but argument 6 has type 'size_t' fs/ocfs2/xattr.c:4092: warning: format '%d' expects type 'int', but argument 6 has type 'size_t' fs/ocfs2/xattr.c:4092: warning: format '%d' expects type 'int', but argument 6 has type 'size_t' Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/xattr.c')
-rw-r--r--fs/ocfs2/xattr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c
index 090449f9263e..1b349c7367a9 100644
--- a/fs/ocfs2/xattr.c
+++ b/fs/ocfs2/xattr.c
@@ -3264,7 +3264,8 @@ static int ocfs2_half_xattr_bucket(struct inode *inode,
3264 xe = &xh->xh_entries[start]; 3264 xe = &xh->xh_entries[start];
3265 len = sizeof(struct ocfs2_xattr_entry) * (count - start); 3265 len = sizeof(struct ocfs2_xattr_entry) * (count - start);
3266 mlog(0, "mv xattr entry len %d from %d to %d\n", len, 3266 mlog(0, "mv xattr entry len %d from %d to %d\n", len,
3267 (char *)xe - (char *)xh, (char *)xh->xh_entries - (char *)xh); 3267 (int)((char *)xe - (char *)xh),
3268 (int)((char *)xh->xh_entries - (char *)xh));
3268 memmove((char *)xh->xh_entries, (char *)xe, len); 3269 memmove((char *)xh->xh_entries, (char *)xe, len);
3269 xe = &xh->xh_entries[count - start]; 3270 xe = &xh->xh_entries[count - start];
3270 len = sizeof(struct ocfs2_xattr_entry) * start; 3271 len = sizeof(struct ocfs2_xattr_entry) * start;
@@ -4073,8 +4074,8 @@ static int ocfs2_xattr_set_entry_in_bucket(struct inode *inode,
4073 u16 blk_per_bucket = ocfs2_blocks_per_xattr_bucket(inode->i_sb); 4074 u16 blk_per_bucket = ocfs2_blocks_per_xattr_bucket(inode->i_sb);
4074 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); 4075 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
4075 4076
4076 mlog(0, "Set xattr entry len = %d index = %d in bucket %llu\n", 4077 mlog(0, "Set xattr entry len = %lu index = %d in bucket %llu\n",
4077 xi->value_len, xi->name_index, 4078 (unsigned long)xi->value_len, xi->name_index,
4078 (unsigned long long)xs->bucket.bhs[0]->b_blocknr); 4079 (unsigned long long)xs->bucket.bhs[0]->b_blocknr);
4079 4080
4080 if (!xs->bucket.bhs[1]) { 4081 if (!xs->bucket.bhs[1]) {