* [PATCH] perf parse-events: Variable type completion
@ 2022-08-16 17:41 Xin Gao
2022-08-22 14:14 ` Arnaldo Carvalho de Melo
0 siblings, 1 reply; 2+ messages in thread
From: Xin Gao @ 2022-08-16 17:41 UTC (permalink / raw)
To: peterz, mingo, acme
Cc: namhyung, irogers, ak, linux-perf-users, linux-kernel, Xin Gao
'unsigned int' is better than 'unsigned'.
Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
---
tools/perf/util/pmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c
index f516d3821d28..bc1230f68341 100644
--- a/tools/perf/util/pmu.c
+++ b/tools/perf/util/pmu.c
@@ -1225,7 +1225,7 @@ static char *pmu_formats_string(struct list_head *formats)
struct perf_pmu_format *format;
char *str = NULL;
struct strbuf buf = STRBUF_INIT;
- unsigned i = 0;
+ unsigned int i = 0;
if (!formats)
return NULL;
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] perf parse-events: Variable type completion
2022-08-16 17:41 [PATCH] perf parse-events: Variable type completion Xin Gao
@ 2022-08-22 14:14 ` Arnaldo Carvalho de Melo
0 siblings, 0 replies; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2022-08-22 14:14 UTC (permalink / raw)
To: Xin Gao
Cc: peterz, mingo, namhyung, irogers, ak, linux-perf-users,
linux-kernel
Em Wed, Aug 17, 2022 at 01:41:09AM +0800, Xin Gao escreveu:
> 'unsigned int' is better than 'unsigned'.
Thanks, applied.
- Arnaldo
> Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
> ---
> tools/perf/util/pmu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c
> index f516d3821d28..bc1230f68341 100644
> --- a/tools/perf/util/pmu.c
> +++ b/tools/perf/util/pmu.c
> @@ -1225,7 +1225,7 @@ static char *pmu_formats_string(struct list_head *formats)
> struct perf_pmu_format *format;
> char *str = NULL;
> struct strbuf buf = STRBUF_INIT;
> - unsigned i = 0;
> + unsigned int i = 0;
>
> if (!formats)
> return NULL;
> --
> 2.30.2
--
- Arnaldo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-22 14:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-16 17:41 [PATCH] perf parse-events: Variable type completion Xin Gao
2022-08-22 14:14 ` Arnaldo Carvalho de Melo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).