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 <kent.overstreet@gmail.com>
This commit is contained in:
Kent Overstreet 2022-03-29 15:07:28 -04:00
parent 733a17f637
commit 59abea5776

View File

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