From 9e40a86a875475f3fe1991a48694ba5601033ebe Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Fri, 6 Feb 2015 13:55:07 -0600 Subject: [PATCH] LU-5231 hsm: display file size in decimal not hex 'lfs hsm_action' displays the file sizes in hex: somebigfile: ARCHIVE running (0xf1c00000 bytes moved) This is not user friendly. Use decimal instead. Remove the last occurences of LPX64 in lfs. Signed-off-by: frank zago Change-Id: Ib964c162b275bc836104cec3500a2f03c73dffeb Reviewed-on: http://review.whamcloud.com/13678 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Henri Doreau Reviewed-by: Andreas Dilger --- lustre/utils/lfs.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lustre/utils/lfs.c b/lustre/utils/lfs.c index f2668ae..9d51838 100644 --- a/lustre/utils/lfs.c +++ b/lustre/utils/lfs.c @@ -3750,12 +3750,15 @@ static int lfs_hsm_action(int argc, char **argv) if ((hps == HPS_RUNNING) && (hua == HUA_ARCHIVE || hua == HUA_RESTORE)) - printf("("LPX64 " bytes moved)\n", he.length); + printf("(%llu bytes moved)\n", + (unsigned long long)he.length); else if ((he.offset + he.length) == LUSTRE_EOF) - printf("(from "LPX64 " to EOF)\n", he.offset); + printf("(from %llu to EOF)\n", + (unsigned long long)he.offset); else - printf("(from "LPX64 " to "LPX64")\n", - he.offset, he.offset + he.length); + printf("(from %llu to %llu)\n", + (unsigned long long)he.offset, + (unsigned long long)(he.offset + he.length)); } while (++i < argc); -- 1.8.3.1