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>
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);
}