diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-29 15:07:28 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-29 15:07:59 -0400 |
commit | 59abea577659ce82ff0098633caaf74076a9b4d7 (patch) | |
tree | 6be27593b3d18aaee943b6adbd129b38721d50cb /cmd_debug.c | |
parent | 733a17f637dccb7b47bcb3016dd867974db7088d (diff) |
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>
Diffstat (limited to 'cmd_debug.c')
-rw-r--r-- | cmd_debug.c | 5 |
1 files 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) |