Commit ce012c9
tools/power turbostat: Fix unrecognized option '-P'
The '-P' short option (shorthand for --no-perf) is not present in the
optstring of the second call to getopt_long_only(). This results in
the "unrecognized option" error when the tool reaches the main parsing
loop.
Add 'P' to the second getopt_long_only() call to ensure it is
consistently recognized.
Fixes: a0e86c9 ("tools/power turbostat: Add --no-perf option")
Signed-off-by: David Arcari <darcari@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>1 parent 3ae6baf commit ce012c9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11449 | 11449 | | |
11450 | 11450 | | |
11451 | 11451 | | |
11452 | | - | |
| 11452 | + | |
11453 | 11453 | | |
11454 | 11454 | | |
11455 | 11455 | | |
| |||
0 commit comments