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++;
|
nr++;
|
||||||
|
|
||||||
while (flags && (bit = __ffs(flags)) < nr) {
|
while (flags && (bit = __ffs(flags)) < nr) {
|
||||||
pr_buf(out, "%s", list[bit]);
|
|
||||||
if (!first)
|
if (!first)
|
||||||
pr_buf(out, ",");
|
pr_buf(out, ",");
|
||||||
first = false;
|
first = false;
|
||||||
|
pr_buf(out, "%s", list[bit]);
|
||||||
flags ^= 1 << bit;
|
flags ^= 1 << bit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user