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 /cmd_debug.c | |
parent | 4df03a2ead35c9007d3ee5d930093ded88dd36b4 (diff) |
Improve some log messages
Diffstat (limited to 'cmd_debug.c')
-rw-r--r-- | cmd_debug.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cmd_debug.c b/cmd_debug.c index 46164476..befd41f4 100644 --- a/cmd_debug.c +++ b/cmd_debug.c @@ -317,8 +317,10 @@ static void print_node_ondisk(struct bch_fs *c, struct btree *b) sectors = vstruct_sectors(bne, c->block_bits); } - fprintf(stdout, " offset %u journal seq %llu\n", - offset, le64_to_cpu(i->journal_seq)); + fprintf(stdout, " offset %u version %u, journal seq %llu\n", + offset, + le16_to_cpu(i->version), + le64_to_cpu(i->journal_seq)); offset += sectors; for (k = i->start; @@ -574,7 +576,7 @@ int cmd_list_journal(int argc, char *argv[]) " write clock %8u\n" , le64_to_cpu(p->j.seq), - le32_to_cpu(p->j.seq), + le32_to_cpu(p->j.version), le64_to_cpu(p->j.last_seq), le16_to_cpu(p->j.read_clock), le16_to_cpu(p->j.write_clock)); |