From: Len Brown <len.brown@intel.com>
Date: Fri, 2 Dec 2016 02:14:38 +0000 (-0500)
Subject: tools/power turbostat: line up headers when -M is used
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5cc6323c797687d7193fef6deec589c23f16289a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git

tools/power turbostat: line up headers when -M is used

The -M option adds an 18-column item, and the header
needs to be wide enough to keep the header aligned
with the columns.

Signed-off-by: Len Brown <len.brown@intel.com>
---

diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 10ae4ffe137c..cfdb574ea302 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -345,7 +345,7 @@ void print_header(void)
 	if (extra_delta_offset64)
 		outp += sprintf(outp, "\tCOUNT 0x%03X", extra_delta_offset64);
 	if (extra_msr_offset32)
-		outp += sprintf(outp, "\tMSR 0x%03X", extra_msr_offset32);
+		outp += sprintf(outp, "\t         MSR 0x%03X", extra_msr_offset32);
 	if (extra_msr_offset64)
 		outp += sprintf(outp, "\tMSR 0x%03X", extra_msr_offset64);