summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2023-03-17 16:25:56 +0100
committerLen Brown <len.brown@intel.com>2023-03-17 16:36:34 +0100
commit6cbfedc7afc93a7f06d4a2f7c4d4732b20adfc2b (patch)
treefbd5fb3059ed813ef0281ae7ec8fdd436c4fb374 /tools
parenttools/power turbostat: Fix /dev/cpu_dma_latency warnings (diff)
downloadlinux-6cbfedc7afc93a7f06d4a2f7c4d4732b20adfc2b.tar.xz
linux-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.