mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Len Brown
parent
90a2fe2576
commit
7446bd6119
@@ -372,7 +372,7 @@ void validate_cpu_selected_set(void)
|
||||
for (cpu = 0; cpu <= max_cpu_num; ++cpu) {
|
||||
if (CPU_ISSET_S(cpu, cpu_setsize, cpu_selected_set))
|
||||
if (!CPU_ISSET_S(cpu, cpu_setsize, cpu_present_set))
|
||||
errx(1, "Requested cpu% is not present", cpu);
|
||||
errx(1, "Requested cpu%d is not present", cpu);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user