Whamcloud - gitweb
LU-13857 obdclass: Add white space to output valid YAML. 09/41709/8
authorLei Feng <flei@whamcloud.com>
Mon, 22 Feb 2021 02:06:03 +0000 (10:06 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 6 Mar 2021 02:35:46 +0000 (02:35 +0000)
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 <flei@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/41709
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/obdclass/lprocfs_jobstats.c

index 93ba6e6..865881d 100644 (file)
@@ -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);