Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751531AbdI1UNS (ORCPT ); Thu, 28 Sep 2017 16:13:18 -0400 Received: from thoth.sbs.de ([192.35.17.2]:55455 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751154AbdI1UNR (ORCPT ); Thu, 28 Sep 2017 16:13:17 -0400 To: Steven Rostedt , Linux Kernel Mailing List From: Jan Kiszka Subject: [PATCH][trace-cmd] Print value of unknown symbolic fields Message-ID: Date: Thu, 28 Sep 2017 22:13:10 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 579 Lines: 24 From: Jan Kiszka Aligns trace-cmd with the behavior of the kernel. Signed-off-by: Jan Kiszka --- 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) { -- 2.12.3