From: James Clark <james.clark@arm.com>
To: Ian Rogers <irogers@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@kernel.org>,
Adrian Hunter <adrian.hunter@intel.com>,
Kan Liang <kan.liang@linux.intel.com>,
linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org,
tchen168@asu.edu, Michael Petlan <mpetlan@redhat.com>
Subject: Re: [PATCH v1 1/2] perf tsc: Add missing newlines to debug statements
Date: Wed, 31 Jan 2024 09:42:30 +0000 [thread overview]
Message-ID: <4b69537a-db1c-5940-b096-04eb818f2ca8@arm.com> (raw)
In-Reply-To: <20240131063048.492010-1-irogers@google.com>
On 31/01/2024 06:30, Ian Rogers wrote:
> It is assumed that debug statements always print a newline, fix two
> missing ones.
>
> Signed-off-by: Ian Rogers <irogers@google.com>
> ---
> This patch was inspired by bad debug output in:
> https://lore.kernel.org/linux-perf-users/CAGjhMsg_bVKJ_zfsLUR32+oZwGDr3OiBHV_BJ3QtFjyKAs7Sgg@mail.gmail.com/
> ---
> tools/perf/arch/x86/util/tsc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/perf/arch/x86/util/tsc.c b/tools/perf/arch/x86/util/tsc.c
> index 9b99f48b923c..e2d6cfe21057 100644
> --- a/tools/perf/arch/x86/util/tsc.c
> +++ b/tools/perf/arch/x86/util/tsc.c
> @@ -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);
Reviewed-by: James Clark <james.clark@arm.com>
prev parent reply other threads:[~2024-01-31 9:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-31 6:30 [PATCH v1 1/2] perf tsc: Add missing newlines to debug statements Ian Rogers
2024-01-31 6:30 ` [PATCH v1 2/2] perf parse-events: Improve error location of terms cloned from an event Ian Rogers
2024-01-31 11:49 ` James Clark
2024-01-31 13:35 ` Ian Rogers
2024-01-31 9:42 ` James Clark [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4b69537a-db1c-5940-b096-04eb818f2ca8@arm.com \
--to=james.clark@arm.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=kan.liang@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=mpetlan@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=tchen168@asu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox