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>
This commit is contained in:
Len Brown 2023-03-17 11:25:56 -04:00
parent 40aafc7d58
commit 6cbfedc7af

View File

@ -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.