[PATCH] perf trace: Fix typo in comments

shaomin Deng posted 1 patch 3 years, 8 months ago
tools/perf/builtin-trace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] perf trace: Fix typo in comments
Posted by shaomin Deng 3 years, 8 months ago
Delete repeated word "and" in comments.

Signed-off-by: shaomin Deng <dengshaomin@cdjrlc.com>
---
 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
Re: [PATCH] perf trace: Fix typo in comments
Posted by Arnaldo Carvalho de Melo 3 years, 8 months ago
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 <dengshaomin@cdjrlc.com>
> ---
>  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