Skip to contentSkip to conversation

libtraceevent: Handle %c

PATCH Applied David Ahern 2 participants 2 messages May 8, 2023 – May 29, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtraceevent: Handle %c

Use of %c in tracepoints is throwing off the argument order when printing event data via perf. Handle '%c' in parse_arg_format.

---
 src/event-parse.c | 1 +
 1 file changed, 1 insertion(+)
src/event-parse.c +1 -0
index acf7fde4ead9..12c6f560019b 100644
@@ -6486,6 +6486,7 @@ static int parse_arg_format(struct tep_print_parse **parse,
 			*arg = (*arg)->next;
 			ret++;
 			return ret;
+		case 'c':
 		case 'd':
 		case 'u':
 		case 'i':
Signature · 1 line
2.25.1
#1 lore raw
Quoted 4 lines · On Mon, 8 May 2023 16:41:21 -0600 David Ahern <[email protected]> wrote:

Use of %c in tracepoints is throwing off the argument order when printing event data via perf. Handle '%c' in parse_arg_format.

Applied, Thanks David!

-- Steve

Quoted 16 lines
---
 src/event-parse.c | 1 +
 1 file changed, 1 insertion(+)
src/event-parse.c +1 -0
index acf7fde4ead9..12c6f560019b 100644
@@ -6486,6 +6486,7 @@ static int parse_arg_format(struct tep_print_parse **parse,
 			*arg = (*arg)->next;
 			ret++;
 			return ret;
+		case 'c':
 		case 'd':
 		case 'u':
 		case 'i':