Skip to contentSkip to conversation

tools: perf: Two typos have been corrected

PATCH In review Lu Hongfei 2 participants 2 messages Jul 6, 2023 – Jul 12, 2023 perf events

lore
Share & tools
lore

Lu Hongfei

author
#0 lore raw

PATCH 1/1 tools: perf: Two typos have been corrected

When wrapping code, use ';' better than using ',' which is more in line with the coding habits of most engineers.

---
 tools/perf/builtin-diff.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/builtin-diff.c +2 -2
index e8a1b16aa5f8..57d300d8e570 100644
@@ -1915,8 +1915,8 @@ static int data_init(int argc, const char **argv)
 		struct perf_data *data = &d->data;
 
 		data->path  = use_default ? defaults[i] : argv[i];
-		data->mode  = PERF_DATA_MODE_READ,
-		data->force = force,
+		data->mode  = PERF_DATA_MODE_READ;
+		data->force = force;
 
 		d->idx  = i;
 	}
Signature · 1 line
2.39.0
reviewer Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Lu Hongfei

When wrapping code, use ';' better than using ',' which is more in line with the coding habits of most engineers.

Thanks,
Ian

Quoted 22 lines
---
 tools/perf/builtin-diff.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/builtin-diff.c +2 -3
index e8a1b16aa5f8..57d300d8e570 100644
@@ -1915,8 +1915,8 @@ static int data_init(int argc, const char **argv)
                struct perf_data *data = &d->data;
 
                data->path  = use_default ? defaults[i] : argv[i];
-               data->mode  = PERF_DATA_MODE_READ,
-               data->force = force,
+               data->mode  = PERF_DATA_MODE_READ;
+               data->force = force;
 
                d->idx  = i;
        }
--

2.39.0