aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 19:06:22 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 19:06:22 -0400
commitba3e0e1accd8d5bb12eaeb0977429d8dc04f6d1e (patch)
treeeb4bf83c8089640845cc5f695105e1446cab2f6d /fs/afs
parent260a980317dac80182dd76140cf67c6e81d6d3dd (diff)
[AFS]: Fix u64 printing in debug logging.
Need 'unsigned long long' casts to quiet warnings on 64-bit platforms when using %ll on a u64. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/afs')
-rw-r--r--fs/afs/dir.c3
-rw-r--r--fs/afs/fsclient.c3
-rw-r--r--fs/afs/inode.c2
3 files changed, 5 insertions, 3 deletions
diff --git a/fs/afs/dir.c b/fs/afs/dir.c
index dbbe75d6023b..dac5b990c0cd 100644
--- a/fs/afs/dir.c
+++ b/fs/afs/dir.c
@@ -419,7 +419,8 @@ static int afs_lookup_filldir(void *_cookie, const char *name, int nlen,
419 struct afs_lookup_cookie *cookie = _cookie; 419 struct afs_lookup_cookie *cookie = _cookie;
420 420
421 _enter("{%s,%Zu},%s,%u,,%llu,%u", 421 _enter("{%s,%Zu},%s,%u,,%llu,%u",
422 cookie->name, cookie->nlen, name, nlen, ino, dtype); 422 cookie->name, cookie->nlen, name, nlen,
423 (unsigned long long) ino, dtype);
423 424
424 /* insanity checks first */ 425 /* insanity checks first */
425 BUILD_BUG_ON(sizeof(union afs_dir_block) != 2048); 426 BUILD_BUG_ON(sizeof(union afs_dir_block) != 2048);
diff --git a/fs/afs/fsclient.c b/fs/afs/fsclient.c
index f036b4cc51a6..2393d2a08d79 100644
--- a/fs/afs/fsclient.c
+++ b/fs/afs/fsclient.c
@@ -105,7 +105,8 @@ static void xdr_decode_AFSFetchStatus(const __be32 **_bp,
105 status->data_version = data_version; 105 status->data_version = data_version;
106 if (vnode && !test_bit(AFS_VNODE_UNSET, &vnode->flags)) { 106 if (vnode && !test_bit(AFS_VNODE_UNSET, &vnode->flags)) {
107 _debug("vnode modified %llx on {%x:%u}", 107 _debug("vnode modified %llx on {%x:%u}",
108 data_version, vnode->fid.vid, vnode->fid.vnode); 108 (unsigned long long) data_version,
109 vnode->fid.vid, vnode->fid.vnode);
109 set_bit(AFS_VNODE_MODIFIED, &vnode->flags); 110 set_bit(AFS_VNODE_MODIFIED, &vnode->flags);
110 set_bit(AFS_VNODE_ZAP_DATA, &vnode->flags); 111 set_bit(AFS_VNODE_ZAP_DATA, &vnode->flags);
111 } 112 }
diff --git a/fs/afs/inode.c b/fs/afs/inode.c
index 56ca8581b37f..c184a4ee5995 100644
--- a/fs/afs/inode.c
+++ b/fs/afs/inode.c
@@ -36,7 +36,7 @@ static int afs_inode_map_status(struct afs_vnode *vnode, struct key *key)
36 _debug("FS: ft=%d lk=%d sz=%llu ver=%Lu mod=%hu", 36 _debug("FS: ft=%d lk=%d sz=%llu ver=%Lu mod=%hu",
37 vnode->status.type, 37 vnode->status.type,
38 vnode->status.nlink, 38 vnode->status.nlink,
39 vnode->status.size, 39 (unsigned long long) vnode->status.size,
40 vnode->status.data_version, 40 vnode->status.data_version,
41 vnode->status.mode); 41 vnode->status.mode);
42 42