mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
tools lib traceevent: Support %ps/%pS
Commits such as 65dd297ac2 ("xfs: %pF is only for function
pointers") caused a regression because pretty_print() didn't support
%ps/%pS. The current %pf/%pF implementation in pretty_print() is what
%ps/%pS is supposed to do, so use the same code for %ps/%pS.
Addressing the incorrect %pf/%pF implementation is beyond the scope of
this patch.
Signed-off-by: Scott Wood <[email protected]>
Acked-by: Steven Rostedt <[email protected]>
Cc: Dave Chinner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
4ba792e303
commit
b6bd9c7d54
1 changed files with 2 additions and 2 deletions
|
|
@ -4905,8 +4905,8 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct event
|
|||
else
|
||||
ls = 2;
|
||||
|
||||
if (*(ptr+1) == 'F' ||
|
||||
*(ptr+1) == 'f') {
|
||||
if (*(ptr+1) == 'F' || *(ptr+1) == 'f' ||
|
||||
*(ptr+1) == 'S' || *(ptr+1) == 's') {
|
||||
ptr++;
|
||||
show_func = *ptr;
|
||||
} else if (*(ptr+1) == 'M' || *(ptr+1) == 'm') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue