cmd_list_journal: Tweak for new log entries

We use entry->level to denote which log entries indicate the start of a
transaction - this updates cmd_list_journal to format them correctly.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
Kent Overstreet 2022-03-30 20:31:28 -04:00
parent e240b4ae86
commit 6692c6f9d3

View File

@ -662,7 +662,7 @@ int cmd_list_journal(int argc, char *argv[])
* log entries denote the start of a new transaction
* commit:
*/
if (entry->type == BCH_JSET_ENTRY_log)
if (entry->type == BCH_JSET_ENTRY_log && !entry->level)
pr_newline(&buf);
pr_indent_push(&buf, 4);
bch2_journal_entry_to_text(&buf, c, entry);