From 151f5322d30ec52a1b99c852e5adbdbbe6fc7e08 Mon Sep 17 00:00:00 2001 From: Lei Feng Date: Mon, 22 Feb 2021 10:06:03 +0800 Subject: [PATCH] LU-13857 obdclass: Add white space to output valid YAML. YAML needs a white space after the colon(:) between a pair of key and value. In this case, if the integer is large enough, it will leave no white space. So insert the white space forcefully. Change-Id: I366b5399cc293a66a70ea6084c6a5fa30a58813b Signed-off-by: Lei Feng Reviewed-on: https://review.whamcloud.com/41709 Tested-by: jenkins Reviewed-by: Andreas Dilger Reviewed-by: James Simmons Tested-by: Maloo --- lustre/obdclass/lprocfs_jobstats.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lustre/obdclass/lprocfs_jobstats.c b/lustre/obdclass/lprocfs_jobstats.c index 93ba6e6..865881d 100644 --- a/lustre/obdclass/lprocfs_jobstats.c +++ b/lustre/obdclass/lprocfs_jobstats.c @@ -457,8 +457,7 @@ static int lprocfs_jobstats_seq_show(struct seq_file *p, void *v) seq_printf(p, ", unit: %5s", cntr_header->lc_units); if (cntr_header->lc_config & LPROCFS_CNTR_AVGMINMAX) { - seq_printf(p, ", min:%8llu, max:%8llu," - " sum:%16llu", + seq_printf(p, ", min: %8llu, max: %8llu, sum: %16llu", ret.lc_count ? ret.lc_min : 0, ret.lc_count ? ret.lc_max : 0, ret.lc_count ? ret.lc_sum : 0); -- 1.8.3.1