summaryrefslogtreecommitdiff
path: root/cmd_debug.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-03-29 15:07:28 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2022-03-29 15:07:59 -0400
commit59abea577659ce82ff0098633caaf74076a9b4d7 (patch)
tree6be27593b3d18aaee943b6adbd129b38721d50cb /cmd_debug.c
parent733a17f637dccb7b47bcb3016dd867974db7088d (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.c5
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)