]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Fix 32 bit build warning in libxfs, xfs_daddr_t printing
authorNathan Scott <nathans@debian.org>
Sat, 3 May 2014 06:09:03 +0000 (16:09 +1000)
committerNathan Scott <nathans@debian.org>
Sat, 3 May 2014 06:09:03 +0000 (16:09 +1000)
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 <nathans@debian.org>
libxfs/rdwr.c

index ea4bdfd58f91f0a4ff5bfb9d2310f6db3b69e30d..57c12c1d4c9ba4cdb3f1c78f6330f32e59bef108 100644 (file)
@@ -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);
        }