]> git.karo-electronics.de Git - linux-beck.git/commitdiff
tools/power turbostat: line up headers when -M is used
authorLen Brown <len.brown@intel.com>
Fri, 2 Dec 2016 02:14:38 +0000 (21:14 -0500)
committerLen Brown <len.brown@intel.com>
Fri, 2 Dec 2016 02:14:38 +0000 (21:14 -0500)
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>
tools/power/x86/turbostat/turbostat.c

index 10ae4ffe137c76975275c1c15e4ee6c4bff8bf5d..cfdb574ea302f34d239e0943f43287111a01e316 100644 (file)
@@ -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);