Skip to content

Commit

Permalink
fs/ufs/balloc.c: fix sparc64 printk warning
Browse files Browse the repository at this point in the history
fs/ufs/balloc.c: In function `ufs_change_blocknr':
fs/ufs/balloc.c:317: warning: long long unsigned int format, long unsigned int arg (arg 2)
fs/ufs/balloc.c:317: warning: long long unsigned int format, long unsigned int arg (arg 3)

sector_t is u64 and we don't know what type the architecture uses to implement
u64.

Cc: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Mar 20, 2008
1 parent 9ea85eb commit 9df1303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/ufs/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ static void ufs_change_blocknr(struct inode *inode, sector_t beg,
}

UFSD(" change from %llu to %llu, pos %u\n",
(unsigned long long)pos + oldb,
(unsigned long long)pos + newb, pos);
(unsigned long long)(pos + oldb),
(unsigned long long)(pos + newb), pos);

bh->b_blocknr = newb + pos;
unmap_underlying_metadata(bh->b_bdev,
Expand Down

0 comments on commit 9df1303

Please sign in to comment.