bcachefs: fix bch2_flags_to_text()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
ba5c65576b
commit
a7451c4292
@ -143,10 +143,10 @@ void bch2_flags_to_text(struct printbuf *out,
|
||||
nr++;
|
||||
|
||||
while (flags && (bit = __ffs(flags)) < nr) {
|
||||
pr_buf(out, "%s", list[bit]);
|
||||
if (!first)
|
||||
pr_buf(out, ",");
|
||||
first = false;
|
||||
pr_buf(out, "%s", list[bit]);
|
||||
flags ^= 1 << bit;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user