Whamcloud - gitweb
LU-15584 utils: ppc64le __le64_to_cpu type mismatch 88/46588/2
authorGian-Carlo DeFazio <defazio1@llnl.gov>
Tue, 22 Feb 2022 20:23:30 +0000 (12:23 -0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 5 Mar 2022 20:42:40 +0000 (20:42 +0000)
commit131f559c5a241f15b8a91009968dfbd9a5dcddeb
treedadfb783621305bd47feabb995ef73709ecc8041
parentd6f8dfd5978d951bc8714aef1ced2054c2d81c06
LU-15584 utils: ppc64le __le64_to_cpu type mismatch

Cast values returned by __le64_to_cpu to
long long unsigned int. This is to match print format
strings that use %llx. This mismatch was resulting in a
build failure for ppc64le.

Build log message:
llog_reader.c:921:42: error: format '%llx' expects
argument of type 'long long unsigned int', but
argument 3 has type 'long unsigned int'

Fixes: 80447caf980 LU-14926 utils: print unlink and setattr recs in llog_reader
Signed-off-by: Gian-Carlo DeFazio <defazio1@llnl.gov>
Change-Id: I939b94626d2707b6ff644324c5c2798218331c4d
Reviewed-on: https://review.whamcloud.com/46588
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/utils/llog_reader.c