]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/power turbostat: Cleanup print helper functions
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 11 Mar 2026 09:00:35 +0000 (11:00 +0200)
committerLen Brown <len.brown@intel.com>
Wed, 22 Apr 2026 15:31:57 +0000 (11:31 -0400)
commit092b76a3253fdd476e6d0626a094bf7b632f8eef
tree96717ce54c4c4e17ad97e2f5afa6133219597d8b
parent08e11edd0e63b72651ed5eb9142430d1ca764923
tools/power turbostat: Cleanup print helper functions

Make printer helper functions more readable by factoring
out a local 'sep' variable.

Remove the redundant parentheses around sprintf() calls.

Remove an unnecessary cast to "unsigned int" by using the '%08llx' instead
   of '%08x'.

No functional changes.

[lenb: fix typos, simplify]
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c