]> git.ipfire.org Git - thirdparty/linux.git/commit
tools/power x86_energy_perf_policy: Fix format string in error message
authorMalaya Kumar Rout <mrout@redhat.com>
Sat, 22 Nov 2025 13:44:54 +0000 (19:14 +0530)
committerLen Brown <len.brown@intel.com>
Tue, 2 Dec 2025 20:58:30 +0000 (15:58 -0500)
commit7446bd6119fa77f75a41d7870953dbf467ffd40b
tree21b94bb5618998a2df14bb3e59aaf3ec1ed3dacc
parent90a2fe257679ee931a99e7555a5844e05ed3945c
tools/power x86_energy_perf_policy: Fix format string in error message

The error message in validate_cpu_selected_set() uses an incomplete
format specifier "cpu%" instead of "cpu%d", resulting in the error
message printing "Requested cpu% is not present" rather than
showing the actual CPU number.

Fix the format string to properly display the CPU number.

Signed-off-by: Malaya Kumar Rout <mrout@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c