summaryrefslogtreecommitdiff
path: root/fs/bcachefs/progress.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/progress.c')
-rw-r--r--fs/bcachefs/progress.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/bcachefs/progress.c b/fs/bcachefs/progress.c
index d09898566abe..792fc6fef270 100644
--- a/fs/bcachefs/progress.c
+++ b/fs/bcachefs/progress.c
@@ -46,16 +46,16 @@ void bch2_progress_update_iter(struct btree_trans *trans,
s->last_node = b;
if (progress_update_p(s)) {
- struct printbuf buf = PRINTBUF;
+ CLASS(printbuf, buf)();
unsigned percent = s->nodes_total
? div64_u64(s->nodes_seen * 100, s->nodes_total)
: 0;
prt_printf(&buf, "%s: %d%%, done %llu/%llu nodes, at ",
- msg, percent, s->nodes_seen, s->nodes_total);
+ strip_bch2(msg),
+ percent, s->nodes_seen, s->nodes_total);
bch2_bbpos_to_text(&buf, BBPOS(iter->btree_id, iter->pos));
bch_info(c, "%s", buf.buf);
- printbuf_exit(&buf);
}
}