1 // SPDX-License-Identifier: GPL-2.0
5 static size_t syscall_arg__scnprintf_waitid_options(char *bf
, size_t size
,
6 struct syscall_arg
*arg
)
8 int printed
= 0, options
= arg
->val
;
11 if (options & W##n) { \
12 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \
22 printed
+= scnprintf(bf
+ printed
, size
- printed
, "%s%#x", printed
? "|" : "", options
);
27 #define SCA_WAITID_OPTIONS syscall_arg__scnprintf_waitid_options