Whamcloud - gitweb
LU-14865 utils: llog_reader.c printf type mismatch
authorGian-Carlo DeFazio <defazio1@llnl.gov>
Wed, 9 Mar 2022 07:23:30 +0000 (23:23 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 10 Mar 2022 04:33:59 +0000 (04:33 +0000)
commit23a44b3071f23082cd618bbfc6241eb9567e09db
tree67d161af88cca758bba54dd5d959e04b5bd8e01b
parentb9c63c30275e31971030825107ee954a27448238
LU-14865 utils: llog_reader.c printf type mismatch

Add (unsigned long long) cast to results of
__le64_to_cpu so that it matches the formatting (%llu)
of the enclosing printf call.

Build log message:
"llog_reader.c:887:9: error: format '%llu' expects
argument of type 'long long unsigned int', but
argument 3 has type '__u64' [-Werror=format=]"

Lustre-change: https://review.whamcloud.com/44346
Lustre-commit: 14b8276e06d6f4e3bfe785df1165458555e406f3

Test-Parameters: trivial
Fixes: 9962d6f84db5 LU-14617 utils: llog_reader updatelog support
Signed-off-by: Gian-Carlo DeFazio <defazio1@llnl.gov>
Change-Id: I9549e0a0bd21727dfcc42992b693bc39a779e1a1
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46757
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/utils/llog_reader.c