diff options
Diffstat (limited to 'libbcachefs/printbuf.c')
-rw-r--r-- | libbcachefs/printbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbcachefs/printbuf.c b/libbcachefs/printbuf.c index de41f9a1..5e653eb8 100644 --- a/libbcachefs/printbuf.c +++ b/libbcachefs/printbuf.c @@ -415,11 +415,11 @@ void bch2_prt_bitflags(struct printbuf *out, while (list[nr]) nr++; - while (flags && (bit = __ffs(flags)) < nr) { + while (flags && (bit = __ffs64(flags)) < nr) { if (!first) bch2_prt_printf(out, ","); first = false; bch2_prt_printf(out, "%s", list[bit]); - flags ^= 1 << bit; + flags ^= BIT_ULL(bit); } } |