12 #define LOCK_WRITE 128
19 static size_t syscall_arg__scnprintf_flock(char *bf
, size_t size
,
20 struct syscall_arg
*arg
)
22 int printed
= 0, op
= arg
->val
;
25 return scnprintf(bf
, size
, "NONE");
27 if ((op & LOCK_##cmd) == LOCK_##cmd) { \
28 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #cmd); \
43 printed
+= scnprintf(bf
+ printed
, size
- printed
, "%s%#x", printed
? "|" : "", op
);
48 #define SCA_FLOCK syscall_arg__scnprintf_flock