perf metrics: Variable type completion
PATCH 1/1 perf metrics: Variable type completion
'unsigned int' is better than 'unsigned'.
Signed-off-by Xin Gao <[email protected]>
--- tools/perf/util/metricgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/metricgroup.c +1 -1
@@ -1620,7 +1620,7 @@ int metricgroup__copy_metric_events(struct evlist *evlist, struct cgroup *cgrp,struct rblist *new_metric_events, struct rblist *old_metric_events) { - unsigned i; + unsigned int i;for (i =0 ; i <rblist__nr_entries (old_metric_events); i++) {struct rb_node *nd;
Signature · 1 line
2.30.2
Em Wed, Aug 17, 2022 at 01:38:04AM +0800, Xin Gao escreveu:
Quoted 1 line
'unsigned int' is better than 'unsigned'.
Thanks, applied.
- Arnaldo
Quoted 20 lines
Signed-off-by Xin Gao <[email protected]>--- tools/perf/util/metricgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/perf/util/metricgroup.c +1
-1@@ -1620,7 +1620,7 @@ int metricgroup__copy_metric_events(struct evlist *evlist, struct cgroup *cgrp,struct rblist *new_metric_events, struct rblist *old_metric_events) { - unsigned i; + unsigned int i;for (i =0 ; i <rblist__nr_entries (old_metric_events); i++) {struct rb_node *nd;Signature · 1 line
2.30.2
Signature · 1 line
- Arnaldo