From 810dfd698f0eb3ea204c6054ad13b9baab94b3b2 Mon Sep 17 00:00:00 2001 From: Minh Diep Date: Fri, 26 Mar 2021 14:14:58 -0700 Subject: [PATCH] EX-2932 llapi: fix '%llu' type mismatch on ppc64le The ppc64le architecture unfortunately defines "__u64" as "long" Change-Id: I0941f0345df101031cdd44c3ac77220ff6b4cc5b Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/43144 Reviewed-by: Andreas Dilger Reviewed-by: Jian Yu Tested-by: jenkins --- lustre/utils/liblustreapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c index db34be3..bcf73fe 100644 --- a/lustre/utils/liblustreapi.c +++ b/lustre/utils/liblustreapi.c @@ -3128,9 +3128,9 @@ void lov_dump_hsm_lmm(void *lum, char *path, int depth, return; llapi_printf(LLAPI_MSG_NORMAL, "%slhm_archive_id: %llu\n", - space, lhm->lhm_archive_id); + space, (unsigned long long)lhm->lhm_archive_id); llapi_printf(LLAPI_MSG_NORMAL, "%slhm_archive_ver: %llu\n", - space, lhm->lhm_archive_ver); + space, (unsigned long long)lhm->lhm_archive_ver); llapi_printf(LLAPI_MSG_NORMAL, "%slhm_archive_uuid: '%.*s'\n", space, UUID_MAX, lhm->lhm_archive_uuid); } -- 1.8.3.1