Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ba3e0e1accd8d5bb12eaeb0977429d8dc04f6d1e
Commit:     ba3e0e1accd8d5bb12eaeb0977429d8dc04f6d1e
Parent:     260a980317dac80182dd76140cf67c6e81d6d3dd
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Thu Apr 26 16:06:22 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Thu Apr 26 16:06:22 2007 -0700

    [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 <[EMAIL PROTECTED]>
---
 fs/afs/dir.c      |    3 ++-
 fs/afs/fsclient.c |    3 ++-
 fs/afs/inode.c    |    2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/fs/afs/dir.c b/fs/afs/dir.c
index dbbe75d..dac5b99 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,
        struct afs_lookup_cookie *cookie = _cookie;
 
        _enter("{%s,%Zu},%s,%u,,%llu,%u",
-              cookie->name, cookie->nlen, name, nlen, ino, dtype);
+              cookie->name, cookie->nlen, name, nlen,
+              (unsigned long long) ino, dtype);
 
        /* insanity checks first */
        BUILD_BUG_ON(sizeof(union afs_dir_block) != 2048);
diff --git a/fs/afs/fsclient.c b/fs/afs/fsclient.c
index f036b4c..2393d2a 100644
--- a/fs/afs/fsclient.c
+++ b/fs/afs/fsclient.c
@@ -105,7 +105,8 @@ static void xdr_decode_AFSFetchStatus(const __be32 **_bp,
                status->data_version = data_version;
                if (vnode && !test_bit(AFS_VNODE_UNSET, &vnode->flags)) {
                        _debug("vnode modified %llx on {%x:%u}",
-                              data_version, vnode->fid.vid, vnode->fid.vnode);
+                              (unsigned long long) data_version,
+                              vnode->fid.vid, vnode->fid.vnode);
                        set_bit(AFS_VNODE_MODIFIED, &vnode->flags);
                        set_bit(AFS_VNODE_ZAP_DATA, &vnode->flags);
                }
diff --git a/fs/afs/inode.c b/fs/afs/inode.c
index 56ca858..c184a4e 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)
        _debug("FS: ft=%d lk=%d sz=%llu ver=%Lu mod=%hu",
               vnode->status.type,
               vnode->status.nlink,
-              vnode->status.size,
+              (unsigned long long) vnode->status.size,
               vnode->status.data_version,
               vnode->status.mode);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to