git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git]
/
tools
/
perf
/
trace
/
beauty
/
waitid_options.c
diff --git
a/tools/perf/trace/beauty/waitid_options.c
b/tools/perf/trace/beauty/waitid_options.c
index 42ff58ad613b8ac8557d7ddb36078a42f84a817f..6897fab40dccaeb224c9152d609a5c6b34a98cc4 100644
(file)
--- a/
tools/perf/trace/beauty/waitid_options.c
+++ b/
tools/perf/trace/beauty/waitid_options.c
@@
-5,11
+5,13
@@
static size_t syscall_arg__scnprintf_waitid_options(char *bf, size_t size,
struct syscall_arg *arg)
{
static size_t syscall_arg__scnprintf_waitid_options(char *bf, size_t size,
struct syscall_arg *arg)
{
+ bool show_prefix = arg->show_string_prefix;
+ const char *prefix = "W";
int printed = 0, options = arg->val;
#define P_OPTION(n) \
if (options & W##n) { \
int printed = 0, options = arg->val;
#define P_OPTION(n) \
if (options & W##n) { \
- printed += scnprintf(bf + printed, size - printed, "%s%s
", printed ? "|" : "",
#n); \
+ printed += scnprintf(bf + printed, size - printed, "%s%s
%s", printed ? "|" : "", show_prefix ? prefix :
#n); \
options &= ~W##n; \
}
options &= ~W##n; \
}