2017-06-06 17:57:22

by Michael Sartain

[permalink] [raw]
Subject: [PATCH] trace-cmd: Fix bad force_token escape sequence

Removes extra backslash in format string

Signed-off-by: Michael Sartain <[email protected]>
---
event-parse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/event-parse.c b/event-parse.c
index 3217131..61f48c1 100644
--- a/event-parse.c
+++ b/event-parse.c
@@ -1093,7 +1093,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;
--
2.11.0