From: Gian-Carlo DeFazio Date: Tue, 20 Jul 2021 00:30:36 +0000 (-0700) Subject: LU-14865 utils: llog_reader.c printf type mismatch X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F48305%2F2;p=fs%2Flustre-release.git 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 Change-Id: I9549e0a0bd21727dfcc42992b693bc39a779e1a1 Reviewed-by: Patrick Farrell Reviewed-by: Andreas Dilger Reviewed-by: James Simmons Signed-off-by: Etienne AUJAMES Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48305 Tested-by: jenkins Tested-by: Maloo --- diff --git a/lustre/utils/llog_reader.c b/lustre/utils/llog_reader.c index 2434020..2ae0f18 100644 --- a/lustre/utils/llog_reader.c +++ b/lustre/utils/llog_reader.c @@ -893,8 +893,8 @@ void print_update_rec(struct llog_update_record *lur) up_count = __le32_to_cpu(rec->ur_update_count); pm_count = __le32_to_cpu(rec->ur_param_count); printf("updatelog record master_transno:%llu batchid:%llu flags:0x%x u_index:%d u_count:%d p_count:%d\n", - __le64_to_cpu(rec->ur_master_transno), - __le64_to_cpu(rec->ur_batchid), + (unsigned long long)__le64_to_cpu(rec->ur_master_transno), + (unsigned long long)__le64_to_cpu(rec->ur_batchid), __le32_to_cpu(rec->ur_flags), __le32_to_cpu(rec->ur_index), up_count,