Whamcloud - gitweb
LU-14865 utils: llog_reader.c printf type mismatch 46/44346/5
authorGian-Carlo DeFazio <defazio1@llnl.gov>
Tue, 20 Jul 2021 00:30:36 +0000 (17:30 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 18 Aug 2021 01:59:34 +0000 (01:59 +0000)
commit14b8276e06d6f4e3bfe785df1165458555e406f3
treef6d4c4c4d358d5beb8cc5fd6710dc4f7d92b684c
parentaa5d081237947263597c0a9d39463d101508adc9
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=]"

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-on: https://review.whamcloud.com/44346
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/utils/llog_reader.c