From 59abea577659ce82ff0098633caaf74076a9b4d7 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Tue, 29 Mar 2022 15:07:28 -0400 Subject: [PATCH] cmd_list_journal: Make output more readable This puts a blank line before log entries, which are used to denote the start of a transaction commit. Signed-off-by: Kent Overstreet --- cmd_debug.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd_debug.c b/cmd_debug.c index 33c4a1b1..04afea13 100644 --- a/cmd_debug.c +++ b/cmd_debug.c @@ -664,8 +664,9 @@ int cmd_list_journal(int argc, char *argv[]) * log entries denote the start of a new transaction * commit: */ - pr_indent_push(&buf, - entry->type == BCH_JSET_ENTRY_log ? 2 : 4); + if (entry->type == BCH_JSET_ENTRY_log) + pr_newline(&buf); + pr_indent_push(&buf, 4); bch2_journal_entry_to_text(&buf, c, entry); if (blacklisted)