Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools/power turbostat: Repair Segmentation fault when using -i option

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>

Len Brown 39300ffb bc909421

+1 -1
+1 -1
tools/power/x86/turbostat/turbostat.c
··· 1594 1594 1595 1595 progname = argv[0]; 1596 1596 1597 - while ((opt = getopt(argc, argv, "+pPSvisc:sC:m:M:")) != -1) { 1597 + while ((opt = getopt(argc, argv, "+pPSvi:sc:sC:m:M:")) != -1) { 1598 1598 switch (opt) { 1599 1599 case 'p': 1600 1600 show_core_only++;