Whamcloud - gitweb
LU-15584 utils: ppc64le __le64_to_cpu type mismatch 07/48307/2
authorGian-Carlo DeFazio <defazio1@llnl.gov>
Tue, 22 Feb 2022 20:23:30 +0000 (12:23 -0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 27 Feb 2024 05:46:44 +0000 (05:46 +0000)
commit30f4f34c3cd17585f5367a875e60abbecc63ab20
tree86af357365e3cae79815ed52be8cf9981e687b30
parent375e5d67e2d36a8d97c40d16f2aba20d9d26e31b
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'

Lustre-change: https://review.whamcloud.com/46588
Lustre-commit: 131f559c5a241f15b8a91009968dfbd9a5dcddeb

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-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48307
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
lustre/utils/llog_reader.c