2022-08-07 09:35:20

by Shaomin Deng

[permalink] [raw]
Subject: [PATCH] perf trace: Fix typo in comments

Delete repeated word "and" in comments.

Signed-off-by: shaomin Deng <[email protected]>
---
tools/perf/builtin-trace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index 7aefecb23a17..2f7b1111d8e9 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -2748,7 +2748,7 @@ static size_t trace__fprintf_tp_fields(struct trace *trace, struct evsel *evsel,

/*
* Suppress this argument if its value is zero and
- * and we don't have a string associated in an
+ * we don't have a string associated in an
* strarray for it.
*/
if (val == 0 &&
--
2.35.1


2022-08-12 20:09:24

by Arnaldo Carvalho de Melo

[permalink] [raw]
Subject: Re: [PATCH] perf trace: Fix typo in comments

Em Sun, Aug 07, 2022 at 04:46:29AM -0400, shaomin Deng escreveu:
> Delete repeated word "and" in comments.

Thanks, applied.

- Arnaldo


> Signed-off-by: shaomin Deng <[email protected]>
> ---
> tools/perf/builtin-trace.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
> index 7aefecb23a17..2f7b1111d8e9 100644
> --- a/tools/perf/builtin-trace.c
> +++ b/tools/perf/builtin-trace.c
> @@ -2748,7 +2748,7 @@ static size_t trace__fprintf_tp_fields(struct trace *trace, struct evsel *evsel,
>
> /*
> * Suppress this argument if its value is zero and
> - * and we don't have a string associated in an
> + * we don't have a string associated in an
> * strarray for it.
> */
> if (val == 0 &&
> --
> 2.35.1

--

- Arnaldo