tools/power turbostat: Refactor floating point printout code

Too many copies of (usually) the same printf code...

Also, unify code for added-counter FORMAT_AVERAGE,
which was correct where it was tested, but neglected elsewhere.

Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
Len Brown 2025-10-20 20:16:10 -03:00
commit 696d15cbd8