diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-02-21 05:38:44 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-02-21 05:38:44 -0500 |
commit | c06026ac542911329a99a3f02a4f5732d6c8e51c (patch) | |
tree | 01498700cb8255284e8d32a6e1703edfc33e9d99 /libbcachefs/xattr.c | |
parent | f85062409230ee9c0ce9e1a7bedb916006597e97 (diff) |
Update bcachefs sources to 9d554fa16d bcachefs: Add .to_text() methods for all superblock sections
Diffstat (limited to 'libbcachefs/xattr.c')
-rw-r--r-- | libbcachefs/xattr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbcachefs/xattr.c b/libbcachefs/xattr.c index 4d7db64e..1673654f 100644 --- a/libbcachefs/xattr.c +++ b/libbcachefs/xattr.c @@ -111,11 +111,11 @@ void bch2_xattr_to_text(struct printbuf *out, struct bch_fs *c, else pr_buf(out, "(unknown type %u)", xattr.v->x_type); - bch_scnmemcpy(out, xattr.v->x_name, - xattr.v->x_name_len); - pr_buf(out, ":"); - bch_scnmemcpy(out, xattr_val(xattr.v), - le16_to_cpu(xattr.v->x_val_len)); + pr_buf(out, "%.*s:%.*s", + xattr.v->x_name_len, + xattr.v->x_name, + le16_to_cpu(xattr.v->x_val_len), + (char *) xattr_val(xattr.v)); } static int bch2_xattr_get_trans(struct btree_trans *trans, struct bch_inode_info *inode, |