diff options
Diffstat (limited to 'libbcachefs/progress.c')
-rw-r--r-- | libbcachefs/progress.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbcachefs/progress.c b/libbcachefs/progress.c index d0989856..792fc6fe 100644 --- a/libbcachefs/progress.c +++ b/libbcachefs/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); } } |