From: Adrian Hunter <adrian.hunter@intel.com>
To: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>,
Ian Rogers <irogers@google.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] perf dlfilter: dlfilter-show-cycles: Fix types for print format
Date: Mon, 5 Sep 2022 10:44:35 +0300 [thread overview]
Message-ID: <92890263-a876-0739-8ba2-e571a576c26c@intel.com> (raw)
In-Reply-To: <20220905074221.4262-1-adrian.hunter@intel.com>
On 5/09/22 10:42, Adrian Hunter wrote:
> Avoid compiler warning about format %llu that expects long long unsigned
> int but argument has type __u64.
>
Fixes: c3afd6e50fce ("perf dlfilter: Add dlfilter-show-cycles")
> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
> ---
> tools/perf/dlfilters/dlfilter-show-cycles.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/perf/dlfilters/dlfilter-show-cycles.c b/tools/perf/dlfilters/dlfilter-show-cycles.c
> index 9eccc97bff82..6d47298ebe9f 100644
> --- a/tools/perf/dlfilters/dlfilter-show-cycles.c
> +++ b/tools/perf/dlfilters/dlfilter-show-cycles.c
> @@ -98,9 +98,9 @@ int filter_event_early(void *data, const struct perf_dlfilter_sample *sample, vo
> static void print_vals(__u64 cycles, __u64 delta)
> {
> if (delta)
> - printf("%10llu %10llu ", cycles, delta);
> + printf("%10llu %10llu ", (unsigned long long)cycles, (unsigned long long)delta);
> else
> - printf("%10llu %10s ", cycles, "");
> + printf("%10llu %10s ", (unsigned long long)cycles, "");
> }
>
> int filter_event(void *data, const struct perf_dlfilter_sample *sample, void *ctx)
prev parent reply other threads:[~2022-09-05 7:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-05 7:42 Adrian Hunter
2022-09-05 7:44 ` Adrian Hunter [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=92890263-a876-0739-8ba2-e571a576c26c@intel.com \
--to=adrian.hunter@intel.com \
--cc=acme@kernel.org \
--cc=irogers@google.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=namhyung@kernel.org \
/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
all inboxes | Powered by JetHome®