mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
tools lib traceevent: Fix bad force_token escape sequence
Older kernels have a bug that creates invalid symbols. event-parse.c handles them by replacing them with a "%s" token. But the fix included an extra backslash, and "\%s" was added incorrectly. Signed-off-by: Michael Sartain <[email protected]> Acked-by: Namhyung Kim <[email protected]> Cc: Andrew Morton <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Link: http://lkml.kernel.org/r/d320000d37c10ce0912851e1fb78d1e0c946bcd9.1497486273.git.mikesart@fastmail.com Signed-off-by: Steven Rostedt <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
08e26396c6
commit
952a99ccfa
1 changed files with 1 additions and 1 deletions
|
|
@ -1094,7 +1094,7 @@ static enum event_type __read_token(char **tok)
|
|||
if (strcmp(*tok, "LOCAL_PR_FMT") == 0) {
|
||||
free(*tok);
|
||||
*tok = NULL;
|
||||
return force_token("\"\%s\" ", tok);
|
||||
return force_token("\"%s\" ", tok);
|
||||
} else if (strcmp(*tok, "STA_PR_FMT") == 0) {
|
||||
free(*tok);
|
||||
*tok = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue