[ovs-dev] [PATCH 07/13] stopwatch: Remove tabs from output.

Ben Pfaff blp at ovn.org
Mon Jun 4 21:27:44 UTC 2018


OVS uses spaces for indentation in source code and it makes sense for it to
also use spaces for indentation in output.  Spaces also consume less
horizontal space in output, which often makes it easier to read.  This
commit transitions one part of output from tabs to spaces and updates
appropriate parts of the tests to match.

Signed-off-by: Ben Pfaff <blp at ovn.org>
---
 lib/stopwatch.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/stopwatch.c b/lib/stopwatch.c
index 20e2eefc0445..2e69d8189aa5 100644
--- a/lib/stopwatch.c
+++ b/lib/stopwatch.c
@@ -280,14 +280,14 @@ stopwatch_print(struct stopwatch *sw, const char *name,
     ds_put_format(s, "Statistics for '%s'\n", name);
 
     const char *units = unit_name[sw->units];
-    ds_put_format(s, "\t Total samples: %llu\n", sw->n_samples);
-    ds_put_format(s, "\t Maximum: %llu %s\n", sw->max, units);
-    ds_put_format(s, "\t Minimum: %llu %s\n", sw->min, units);
-    ds_put_format(s, "\t 95th percentile: %f %s\n",
+    ds_put_format(s, "  Total samples: %llu\n", sw->n_samples);
+    ds_put_format(s, "  Maximum: %llu %s\n", sw->max, units);
+    ds_put_format(s, "  Minimum: %llu %s\n", sw->min, units);
+    ds_put_format(s, "  95th percentile: %f %s\n",
                   sw->pctl.percentile, units);
-    ds_put_format(s, "\t Short term average: %f %s\n",
+    ds_put_format(s, "  Short term average: %f %s\n",
                   sw->short_term.average, units);
-    ds_put_format(s, "\t Long term average: %f %s\n",
+    ds_put_format(s, "  Long term average: %f %s\n",
                   sw->long_term.average, units);
 }
 
-- 
2.16.1



More information about the dev mailing list