]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
tools lib traceevent: Simplify pointer print logic and fix %pF
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 12 Jan 2018 00:47:45 +0000 (19:47 -0500)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 17:44:25 +0000 (13:44 -0400)
commit39beeb760b0f784fbc40f471b779d5598885053a
tree2b114a5f47b3e708a4454b0da72fc3cdd91c1b6e
parent1241c13304f2995ef3725150d54f9d1fe6a44143
tools lib traceevent: Simplify pointer print logic and fix %pF

BugLink: http://bugs.launchpad.net/bugs/1774063
[ Upstream commit 38d70b7ca1769f26c0b79f3c08ff2cc949712b59 ]

When processing %pX in pretty_print(), simplify the logic slightly by
incrementing the ptr to the format string if isalnum(ptr[1]) is true.
This follows the logic a bit more closely to what is in the kernel.

Also, this fixes a small bug where %pF was not giving the offset of the
function.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20180112004822.260262257@goodmis.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/lib/traceevent/event-parse.c