perf trace: Enclose strings with double quotes
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 721f5326fb35dcba18ee4d9ef2b32394f86d403e Gitweb: https://git.kernel.org/tip/721f5326fb35dcba18ee4d9ef2b32394f86d403e Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Fri, 14 Dec 2018 14:02:03 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 18 Dec 2018 16:07:41 -0300
perf trace: Enclose strings with double quotes
To match 'strace' output, helping with upcoming regression tests comparing both outputs.
Cc Adrian Hunter <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Luis Cláudio Gonçalves <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/builtin-trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/builtin-trace.c +1 -1
@@ -1149,7 +1149,7 @@ static size_t syscall_arg__scnprintf_augmented_string(struct syscall_arg *arg, c {struct augmented_arg *augmented_arg = arg->augmented.args; -return scnprintf (bf, size,"%.*s" , augmented_arg->size, augmented_arg->value); +return scnprintf (bf, size,"\"%.*s\"" , augmented_arg->size, augmented_arg->value); } static size_t syscall_arg__scnprintf_filename(char *bf, size_t size,