Skip to content

Commit 7446bd6

Browse files
Malaya Kumar Routlenb
authored andcommitted
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>
1 parent 90a2fe2 commit 7446bd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ void validate_cpu_selected_set(void)
372372
for (cpu = 0; cpu <= max_cpu_num; ++cpu) {
373373
if (CPU_ISSET_S(cpu, cpu_setsize, cpu_selected_set))
374374
if (!CPU_ISSET_S(cpu, cpu_setsize, cpu_present_set))
375-
errx(1, "Requested cpu% is not present", cpu);
375+
errx(1, "Requested cpu%d is not present", cpu);
376376
}
377377
}
378378

0 commit comments

Comments
 (0)