tools/power turbostat: remove stray newlines from warn/warnx strings
authorLen Brown <len.brown@intel.com>
Fri, 17 Mar 2023 15:25:56 +0000 (11:25 -0400)
committerLen 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

index 9aed262..649b48e 100644 (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.