.. | .. |
---|
1 | | -// SPDX-License-Identifier: GPL-2.0 |
---|
| 1 | +// SPDX-License-Identifier: LGPL-2.1 |
---|
2 | 2 | #include <linux/futex.h> |
---|
3 | 3 | |
---|
4 | 4 | #ifndef FUTEX_BITSET_MATCH_ANY |
---|
.. | .. |
---|
7 | 7 | |
---|
8 | 8 | static size_t syscall_arg__scnprintf_futex_val3(char *bf, size_t size, struct syscall_arg *arg) |
---|
9 | 9 | { |
---|
| 10 | + const char *prefix = "FUTEX_BITSET_"; |
---|
10 | 11 | unsigned int bitset = arg->val; |
---|
11 | 12 | |
---|
12 | 13 | if (bitset == FUTEX_BITSET_MATCH_ANY) |
---|
13 | | - return scnprintf(bf, size, "MATCH_ANY"); |
---|
| 14 | + return scnprintf(bf, size, "%s%s", arg->show_string_prefix ? prefix : "", "MATCH_ANY"); |
---|
14 | 15 | |
---|
15 | 16 | return scnprintf(bf, size, "%#xd", bitset); |
---|
16 | 17 | } |
---|