diff mbox series

libtraceevent: Handle %c

Message ID 20230508224121.12861-1-dsahern@kernel.org (mailing list archive)
State Accepted
Commit 1d8ddb972d08ffd283e6dc7952d4cbe8a6b74eb0
Headers show
Series libtraceevent: Handle %c | expand

Commit Message

David Ahern May 8, 2023, 10:41 p.m. UTC
Use of %c in tracepoints is throwing off the argument order when printing
event data via perf. Handle '%c' in parse_arg_format.

Signed-off-by: David Ahern <dsahern@kernel.org>
---
 src/event-parse.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Steven Rostedt May 29, 2023, 8:50 a.m. UTC | #1
On Mon,  8 May 2023 16:41:21 -0600
David Ahern <dsahern@kernel.org> wrote:

> Use of %c in tracepoints is throwing off the argument order when printing
> event data via perf. Handle '%c' in parse_arg_format.
> 
> Signed-off-by: David Ahern <dsahern@kernel.org>

Applied, Thanks David!

-- Steve

> ---
>  src/event-parse.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/event-parse.c b/src/event-parse.c
> index acf7fde4ead9..12c6f560019b 100644
> --- a/src/event-parse.c
> +++ b/src/event-parse.c
> @@ -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':
diff mbox series

Patch

diff --git a/src/event-parse.c b/src/event-parse.c
index acf7fde4ead9..12c6f560019b 100644
--- a/src/event-parse.c
+++ b/src/event-parse.c
@@ -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':