Skip to content

Commit 39300ff

Browse files
committed
tools/power turbostat: Repair Segmentation fault when using -i option
Fix regression caused by commit 8e180f3 (tools/power turbostat: add [-d MSR#][-D MSR#] options to print counter deltas) Signed-off-by: Len Brown <len.brown@intel.com>
1 parent bc90942 commit 39300ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/power/x86/turbostat/turbostat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ void cmdline(int argc, char **argv)
15941594

15951595
progname = argv[0];
15961596

1597-
while ((opt = getopt(argc, argv, "+pPSvisc:sC:m:M:")) != -1) {
1597+
while ((opt = getopt(argc, argv, "+pPSvi:sc:sC:m:M:")) != -1) {
15981598
switch (opt) {
15991599
case 'p':
16001600
show_core_only++;

0 commit comments

Comments
 (0)