]> git.baikalelectronics.ru Git - kernel.git/commit
tools/power turbostat: remove blank lines
authorLen Brown <len.brown@intel.com>
Sun, 28 Jan 2018 03:39:21 +0000 (22:39 -0500)
committerLen Brown <len.brown@intel.com>
Fri, 1 Jun 2018 21:15:09 +0000 (17:15 -0400)
commitcd1c6ff1c5c9a29d49f1c32278a6f743ff1caf68
treec28e2f5c7e7957db96a0592a7113561cea136515
parent4b137cd556673211b6ae8da79b3e88927759d292
tools/power turbostat: remove blank lines

When the user reuests to collect and show columns
that are not present on every row (eg. for every CPU)
turbostat still prints an (empty) line for every CPU.
Update so no blank lines are printed.

old:
# turbostat --quiet --show Pkg%pc6
Pkg%pc6
9.12
9.12

Pkg%pc6
9.12
9.12

new:
# turbostat --quiet --show Pkg%pc6
Pkg%pc6
9.12
9.12
Pkg%pc6
9.12
9.12

Reported-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c