]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - io/fiemap.c
xfsprogs: explicitly cast troublesome types to match printf format specifiers
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 9 Nov 2017 17:35:23 +0000 (11:35 -0600)
committerEric Sandeen <sandeen@redhat.com>
Thu, 9 Nov 2017 17:35:23 +0000 (11:35 -0600)
commit51073f865aaf6dcde7a228234cfc72bce781e49a
treeb4e5989fa4076f5c30e26209e2dc9532036360f4
parent921c30674e9bc719e7c2747deb6deb04be2adb4b
xfsprogs: explicitly cast troublesome types to match printf  format specifiers

Certain system-defined types (__u64, __s64, __nlink_t, __ino64_t,
__off64_t, __blkcnt64_t) don't have a consistent definition across
different architectures, so wherever we use a printf format specifier on
such a variable, we have to typecast the variable or else the compiler
will complain.

IOWs this fixes build warnings on ppc64le.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
io/fiemap.c
io/open.c
io/stat.c
repair/attr_repair.c
repair/dinode.c
repair/phase6.c
repair/scan.c