Commit d6344473 authored by Jan Kiszka's avatar Jan Kiszka Committed by Arnaldo Carvalho de Melo

tools lib traceevent: Print value of unknown symbolic fields

Aligns trace-cmd with the behavior of the kernel.
Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/e60c889f-55e7-4ee8-0e50-151e435ffd8c@siemens.com
Link: http://lkml.kernel.org/r/20180112004822.118332436@goodmis.orgSigned-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 3df76c9a
...@@ -3985,6 +3985,8 @@ static void print_str_arg(struct trace_seq *s, void *data, int size, ...@@ -3985,6 +3985,8 @@ static void print_str_arg(struct trace_seq *s, void *data, int size,
break; break;
} }
} }
if (!flag)
trace_seq_printf(s, "0x%llx", val);
break; break;
case PRINT_HEX: case PRINT_HEX:
case PRINT_HEX_STR: case PRINT_HEX_STR:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment