projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc90942
)
tools/power turbostat: Repair Segmentation fault when using -i option
author
Len Brown
<len.brown@intel.com>
Thu, 1 Nov 2012 04:16:34 +0000
(
00:16
-0400)
committer
Len Brown
<len.brown@intel.com>
Thu, 1 Nov 2012 04:21:43 +0000
(
00:21
-0400)
Fix regression caused by commit
8e180f3cb6b7510a3bdf14e16ce87c9f5d86f102
(tools/power turbostat: add [-d MSR#][-D MSR#] options to print counter
deltas)
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c
patch
|
blob
|
history
diff --git
a/tools/power/x86/turbostat/turbostat.c
b/tools/power/x86/turbostat/turbostat.c
index 2655ae9a3ad8d9e6f7676006336a5e3b8fec99d1..9942dee3df413948a3bda054d582123e3e928054 100644
(file)
--- a/
tools/power/x86/turbostat/turbostat.c
+++ b/
tools/power/x86/turbostat/turbostat.c
@@
-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++;