From b47c8cae3637a81c50a7f1e42938fc20d947f3aa Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Sat, 3 May 2014 16:09:03 +1000 Subject: [PATCH] Fix 32 bit build warning in libxfs, xfs_daddr_t printing Add the usual type casts to resolve the following warnings: rdwr.c: In function 'libxfs_getbufr_map': rdwr.c:499:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'xfs_daddr_t' [-Wformat] rdwr.c:499:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'xfs_daddr_t' [-Wformat] Signed-off-by: Nathan Scott --- libxfs/rdwr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libxfs/rdwr.c b/libxfs/rdwr.c index ea4bdfd58..57c12c1d4 100644 --- a/libxfs/rdwr.c +++ b/libxfs/rdwr.c @@ -495,8 +495,9 @@ libxfs_getbufr_map(struct xfs_buftarg *btp, xfs_daddr_t blkno, int bblen, if (blkno != map[0].bm_bn) { fprintf(stderr, - _("%s: %s map blkno %lx doesn't match key %lx\n"), - progname, __FUNCTION__, map[0].bm_bn, blkno); + _("%s: %s map blkno 0x%llx doesn't match key 0x%llx\n"), + progname, __FUNCTION__, (long long)map[0].bm_bn, + (long long)blkno); exit(1); } -- 2.47.2