perf tsc: Add missing newlines to debug statements
authorIan Rogers <irogers@google.com>
Wed, 31 Jan 2024 13:49:38 +0000 (05:49 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 2 Feb 2024 21:07:18 +0000 (13:07 -0800)
It is assumed that debug statements always print a newline, fix two
missing ones.

Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: James Clark <james.clark@arm.com>
Cc: tchen168@asu.edu
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240131134940.593788-1-irogers@google.com
tools/perf/arch/x86/util/tsc.c

index 9b99f48b923cf41188ef395b644e849f2f10605e..e2d6cfe21057bd8ac30563245b44fed5d9a3bd58 100644 (file)
@@ -33,7 +33,7 @@ static double cpuinfo_tsc_freq(void)
 
        cpuinfo = fopen("/proc/cpuinfo", "r");
        if (!cpuinfo) {
-               pr_err("Failed to read /proc/cpuinfo for TSC frequency");
+               pr_err("Failed to read /proc/cpuinfo for TSC frequency\n");
                return NAN;
        }
        while (getline(&line, &len, cpuinfo) > 0) {
@@ -48,7 +48,7 @@ static double cpuinfo_tsc_freq(void)
        }
 out:
        if (fpclassify(result) == FP_ZERO)
-               pr_err("Failed to find TSC frequency in /proc/cpuinfo");
+               pr_err("Failed to find TSC frequency in /proc/cpuinfo\n");
 
        free(line);
        fclose(cpuinfo);