#include "quota.h"
#include "xattr.h"
-const char * const bch_bkey_types[] = {
+const char * const bch2_bkey_types[] = {
#define x(name, nr) #name,
BCH_BKEY_TYPES()
#undef x
void bch2_bkey_to_text(struct printbuf *out, const struct bkey *k)
{
- pr_buf(out, "u64s %u type %u ", k->u64s, k->type);
+ pr_buf(out, "u64s %u type %s ", k->u64s,
+ bch2_bkey_types[k->type]);
bch2_bpos_to_text(out, k->p);
if (likely(ops->val_to_text))
ops->val_to_text(out, c, k);
- else
- pr_buf(out, " %s", bch_bkey_types[k.k->type]);
}
void bch2_bkey_val_to_text(struct printbuf *out, struct bch_fs *c,