perf tsc: Add missing newlines to debug statements
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
This commit is contained in:
parent
366fb5f59d
commit
2882358b8b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user