From: Lei Feng Date: Mon, 22 Feb 2021 02:06:03 +0000 (+0800) Subject: LU-13857 obdclass: Add white space to output valid YAML. X-Git-Tag: 2.14.51~78 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=151f5322d30ec52a1b99c852e5adbdbbe6fc7e08 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 --- 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);