Skip to content

Commit

Permalink
[AFS]: Fix u64 printing in debug logging.
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
David S. Miller committed Apr 26, 2007
1 parent 260a980 commit ba3e0e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion fs/afs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion fs/afs/fsclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion fs/afs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ba3e0e1

Please sign in to comment.