Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39300ffb authored by Len Brown's avatar Len Brown
Browse files

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



Fix regression caused by commit 8e180f3c
(tools/power turbostat: add [-d MSR#][-D MSR#] options to print counter
deltas)

Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent bc909421
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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++;