for (i = 0; i < nr; i++) {
if (i < BCH_COUNTER_NR)
- prt_printf(out, "%s", bch2_counter_names[i]);
+ prt_printf(out, "%s ", bch2_counter_names[i]);
else
prt_printf(out, "(unknown)");
{
c->counters = __alloc_percpu(sizeof(u64) * BCH_COUNTER_NR, sizeof(u64));
if (!c->counters)
- return -ENOMEM;
+ return -BCH_ERR_ENOMEM_fs_counters_init;
return bch2_sb_counters_to_cpu(c);
}