Skip to contentSkip to conversation

perf parse-events: Variable type completion

PATCH Applied Xin Gao 2 participants 2 messages Aug 16, 2022 – Aug 22, 2022 perf events

lore
Share & tools
lore

Xin Gao

author
#0 lore raw

PATCH 1/1 perf parse-events: Variable type completion

'unsigned int' is better than 'unsigned'.

---
 tools/perf/util/pmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/pmu.c +1 -1
index f516d3821d28..bc1230f68341 100644
@@ -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;
Signature · 1 line
2.30.2
maintainer Applied
#1 lore raw

Em Wed, Aug 17, 2022 at 01:41:09AM +0800, Xin Gao escreveu:

Quoted 1 line

'unsigned int' is better than 'unsigned'.

Thanks, applied.

- Arnaldo

Quoted 20 lines
---
 tools/perf/util/pmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/pmu.c +1 -1
index f516d3821d28..bc1230f68341 100644
@@ -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;
Signature · 1 line
2.30.2
Signature · 1 line
- Arnaldo