From 6692c6f9d3feb8dffb34fc01c36e03765238c842 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Wed, 30 Mar 2022 20:31:28 -0400 Subject: [PATCH] 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 --- cmd_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd_debug.c b/cmd_debug.c index 159835b8..8b2cb43b 100644 --- a/cmd_debug.c +++ b/cmd_debug.c @@ -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);