diff options
Diffstat (limited to 'src/vpp-api')
-rw-r--r-- | src/vpp-api/python/vpp_papi/vpp_stats.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_stats.py b/src/vpp-api/python/vpp_papi/vpp_stats.py index 3638892135f..eeaa32d7229 100644 --- a/src/vpp-api/python/vpp_papi/vpp_stats.py +++ b/src/vpp-api/python/vpp_papi/vpp_stats.py @@ -292,8 +292,8 @@ class VPPStats(object): def set_errors_str(self): '''Return all errors counters > 0 pretty printed''' - s = 'ERRORS:\n' + s = ['ERRORS:'] error_counters = self.set_errors() for k in sorted(error_counters): - s += '{:<60}{:>10}\n'.format(k, error_counters[k]) - return s + s.append('{:<60}{:>10}'.format(k, error_counters[k])) + return '%s\n' % '\n'.join(s) |