Skip to content

Commit 6cbfedc

Browse files
committed
tools/power turbostat: remove stray newlines from warn/warnx strings
warn(3) terminates strings with newlines Signed-off-by: Len Brown <[email protected]>
1 parent 40aafc7 commit 6cbfedc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/power/x86/turbostat/turbostat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5482,7 +5482,7 @@ void print_dev_latency(void)
54825482

54835483
retval = read(fd, (void *)&value, sizeof(int));
54845484
if (retval != sizeof(int)) {
5485-
warn("read failed %s\n", path);
5485+
warn("read failed %s", path);
54865486
close(fd);
54875487
return;
54885488
}
@@ -5543,7 +5543,7 @@ void process_cpuid()
55435543
edx_flags = edx;
55445544

55455545
if (get_msr(sched_getcpu(), MSR_IA32_UCODE_REV, &ucode_patch))
5546-
warnx("get_msr(UCODE)\n");
5546+
warnx("get_msr(UCODE)");
55475547

55485548
/*
55495549
* check max extended function levels of CPUID.

0 commit comments

Comments
 (0)