Skip to content

Commit

Permalink
tools/power turbostat: Repair Segmentation fault when using -i option
Browse files Browse the repository at this point in the history
Fix regression caused by commit 8e180f3
(tools/power turbostat: add [-d MSR#][-D MSR#] options to print counter
deltas)

Signed-off-by: Len Brown <[email protected]>
  • Loading branch information
lenb committed Nov 1, 2012
1 parent bc90942 commit 39300ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/power/x86/turbostat/turbostat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1594,7 +1594,7 @@ void cmdline(int argc, char **argv)

progname = argv[0];

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

0 comments on commit 39300ff

Please sign in to comment.