diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-11-13 16:24:12 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2020-11-13 16:45:21 -0500 |
commit | 4915b450e2a1d31c96d27df53147c614bc69c807 (patch) | |
tree | 1cb599ec348f266b0c0d0c6ca2480d8948fc146f /libbcachefs.c | |
parent | 4df03a2ead35c9007d3ee5d930093ded88dd36b4 (diff) |
Improve some log messages
Diffstat (limited to 'libbcachefs.c')
-rw-r--r-- | libbcachefs.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libbcachefs.c b/libbcachefs.c index 7ff02b88..8ef9c37b 100644 --- a/libbcachefs.c +++ b/libbcachefs.c @@ -619,6 +619,13 @@ static void bch2_sb_print_disk_groups(struct bch_sb *sb, struct bch_sb_field *f, static void bch2_sb_print_clean(struct bch_sb *sb, struct bch_sb_field *f, enum units units) { + struct bch_sb_field_clean *clean = field_to_type(f, clean); + + + printf(" flags: %x", le32_to_cpu(clean->flags)); + printf(" read clock: %x", le16_to_cpu(clean->read_clock)); + printf(" write clock: %x", le16_to_cpu(clean->write_clock)); + printf(" journal seq: %llx", le64_to_cpu(clean->journal_seq)); } static void bch2_sb_print_journal_seq_blacklist(struct bch_sb *sb, struct bch_sb_field *f, @@ -669,7 +676,7 @@ void bch2_sb_print(struct bch_sb *sb, bool print_layout, { struct bch_sb_field_members *mi; char user_uuid_str[40], internal_uuid_str[40]; - char features_str[200]; + char features_str[500]; char fields_have_str[200]; char label[BCH_SB_LABEL_SIZE + 1]; char time_str[64]; |