Commit ed532d73 authored by Artem Bityutskiy's avatar Artem Bityutskiy Committed by Len Brown
Browse files

tools/power turbostat: Consistently use print_float_value()



Fix the PMT thread code to use print_float_value(),
to be consistent with the PMT core and package code.

[lenb: commit message]
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent a4440832
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3489,12 +3489,12 @@ int format_counters(PER_THREAD_PARAMS)

		case PMT_TYPE_XTAL_TIME:
			value_converted = pct(value_raw / crystal_hz, interval_float);
			outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), value_converted);
			outp += print_float_value(&printed, delim, value_converted);
			break;

		case PMT_TYPE_TCORE_CLOCK:
			value_converted = pct(value_raw / tcore_clock_freq_hz, interval_float);
			outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), value_converted);
			outp += print_float_value(&printed, delim, value_converted);
		}
	}