summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2023-03-17 11:25:56 -0400
committerLen Brown <len.brown@intel.com>2023-03-17 11:36:34 -0400
commit6cbfedc7afc93a7f06d4a2f7c4d4732b20adfc2b (patch)
treefbd5fb3059ed813ef0281ae7ec8fdd436c4fb374 /tools
parent40aafc7d58d3544f152a863a0e9863014b6d5d8c (diff)
downloadlinux-stable-6cbfedc7afc93a7f06d4a2f7c4d4732b20adfc2b.tar.gz
linux-stable-6cbfedc7afc93a7f06d4a2f7c4d4732b20adfc2b.tar.bz2
linux-stable-6cbfedc7afc93a7f06d4a2f7c4d4732b20adfc2b.zip
tools/power turbostat: remove stray newlines from warn/warnx strings
warn(3) terminates strings with newlines Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/power/x86/turbostat/turbostat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 9aed2620a2d2..649b48e53a31 100644
--- 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.