1 // SPDX-License-Identifier: LGPL-2.1
5 static size_t syscall_arg__scnprintf_waitid_options(char *bf, size_t size,
6 struct syscall_arg *arg)
8 bool show_prefix = arg->show_string_prefix;
9 const char *prefix = "W";
10 int printed = 0, options = arg->val;
13 if (options & W##n) { \
14 printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? prefix : "", #n); \
24 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", options);
29 #define SCA_WAITID_OPTIONS syscall_arg__scnprintf_waitid_options