lkml.org 
[lkml]   [2017]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH][trace-cmd] Print value of unknown symbolic fields
On Thu, 28 Sep 2017 22:13:10 +0200
Jan Kiszka <jan.kiszka@siemens.com> wrote:

> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> Aligns trace-cmd with the behavior of the kernel.
>

Thanks, applied.

-- Steve

> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> event-parse.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/event-parse.c b/event-parse.c
> index 606da5b..25e0874 100644
> --- a/event-parse.c
> +++ b/event-parse.c
> @@ -3960,6 +3960,8 @@ static void print_str_arg(struct trace_seq *s, void *data, int size,
> break;
> }
> }
> + if (!flag)
> + trace_seq_printf(s, "0x%llx", val);
> break;
> case PRINT_HEX:
> if (arg->hex.field->type == PRINT_DYNAMIC_ARRAY) {

\
 
 \ /
  Last update: 2017-10-04 00:47    [W:0.033 / U:1.996 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site