Skip to content

Commit

Permalink
tools/power turbostat: remove stray newlines from warn/warnx strings
Browse files Browse the repository at this point in the history
warn(3) terminates strings with newlines

Signed-off-by: Len Brown <[email protected]>
  • Loading branch information
lenb committed Mar 17, 2023
1 parent 40aafc7 commit 6cbfedc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/power/x86/turbostat/turbostat.c
Original file line number Diff line number Diff line change
Expand Up @@ -5482,7 +5482,7 @@ void print_dev_latency(void)

retval = read(fd, (void *)&value, sizeof(int));
if (retval != sizeof(int)) {
warn("read failed %s\n", path);
warn("read failed %s", path);
close(fd);
return;
}
Expand Down Expand Up @@ -5543,7 +5543,7 @@ void process_cpuid()
edx_flags = edx;

if (get_msr(sched_getcpu(), MSR_IA32_UCODE_REV, &ucode_patch))
warnx("get_msr(UCODE)\n");
warnx("get_msr(UCODE)");

/*
* check max extended function levels of CPUID.
Expand Down

0 comments on commit 6cbfedc

Please sign in to comment.