mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +00:00
tools/power turbostat: Fix column printing for PMT xtal_time counters
If the very first printed column was for a PMT counter of type xtal_time we would misalign the column header, because we were always printing the delimiter. Signed-off-by: Patryk Wlazlyn <patryk.wlazlyn@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
d4a058762f
commit
ea8614c08d
@ -2291,7 +2291,7 @@ void print_header(char *delim)
|
||||
break;
|
||||
|
||||
case PMT_TYPE_XTAL_TIME:
|
||||
outp += sprintf(outp, "%s%s", delim, ppmt->name);
|
||||
outp += sprintf(outp, "%s%s", (printed++ ? delim : ""), ppmt->name);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -2365,7 +2365,7 @@ void print_header(char *delim)
|
||||
break;
|
||||
|
||||
case PMT_TYPE_XTAL_TIME:
|
||||
outp += sprintf(outp, "%s%s", delim, ppmt->name);
|
||||
outp += sprintf(outp, "%s%s", (printed++ ? delim : ""), ppmt->name);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -2496,7 +2496,7 @@ void print_header(char *delim)
|
||||
break;
|
||||
|
||||
case PMT_TYPE_XTAL_TIME:
|
||||
outp += sprintf(outp, "%s%s", delim, ppmt->name);
|
||||
outp += sprintf(outp, "%s%s", (printed++ ? delim : ""), ppmt->name);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user