projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40aafc7
)
tools/power turbostat: remove stray newlines from warn/warnx strings
author
Len Brown
<len.brown@intel.com>
Fri, 17 Mar 2023 15:25:56 +0000
(11:25 -0400)
committer
Len Brown
<len.brown@intel.com>
Fri, 17 Mar 2023 15:36:34 +0000
(11:36 -0400)
warn(3) terminates strings with newlines
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c
patch
|
blob
|
history
diff --git
a/tools/power/x86/turbostat/turbostat.c
b/tools/power/x86/turbostat/turbostat.c
index
9aed262
..
649b48e
100644
(file)
--- a/
tools/power/x86/turbostat/turbostat.c
+++ b/
tools/power/x86/turbostat/turbostat.c
@@
-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;
}
@@
-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.