diff options
author | Scott Wood <scottwood@freescale.com> | 2015-03-11 23:13:57 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-03-25 08:57:22 -0400 |
commit | bbedb179944c29e5e449603163eec9951116fe39 (patch) | |
tree | 7ed8b4a90541e710200df3fc6a067c2dfb88f184 /tools/lib/traceevent/event-parse.c | |
parent | 80a9b64e2c156b6523e7a01f2ba6e5d86e722814 (diff) |
tracing: %pF is only for function pointers
Use %pS for actual addresses, otherwise you'll get bad output
on arches like ppc64 where %pF expects a function descriptor.
Link: http://lkml.kernel.org/r/1426130037-17956-22-git-send-email-scottwood@freescale.com
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/lib/traceevent/event-parse.c')
-rw-r--r-- | tools/lib/traceevent/event-parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index afe20ed9fac8..2c0bd8f2aad0 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c | |||
@@ -3976,7 +3976,7 @@ static struct print_arg *make_bprint_args(char *fmt, void *data, int size, struc | |||
3976 | if (asprintf(&arg->atom.atom, "%lld", ip) < 0) | 3976 | if (asprintf(&arg->atom.atom, "%lld", ip) < 0) |
3977 | goto out_free; | 3977 | goto out_free; |
3978 | 3978 | ||
3979 | /* skip the first "%pf: " */ | 3979 | /* skip the first "%ps: " */ |
3980 | for (ptr = fmt + 5, bptr = data + field->offset; | 3980 | for (ptr = fmt + 5, bptr = data + field->offset; |
3981 | bptr < data + size && *ptr; ptr++) { | 3981 | bptr < data + size && *ptr; ptr++) { |
3982 | int ls = 0; | 3982 | int ls = 0; |