summaryrefslogtreecommitdiff
path: root/cmd_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd_debug.c')
-rw-r--r--cmd_debug.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd_debug.c b/cmd_debug.c
index 9238e8b..d871af0 100644
--- a/cmd_debug.c
+++ b/cmd_debug.c
@@ -615,7 +615,12 @@ int cmd_list_journal(int argc, char *argv[])
vstruct_for_each(&p->j, entry) {
buf = PBUF(_buf);
- printbuf_indent_push(&buf, 4);
+ /*
+ * log entries denote the start of a new transaction
+ * commit:
+ */
+ printbuf_indent_push(&buf,
+ entry->type == BCH_JSET_ENTRY_log ? 2 : 4);
bch2_journal_entry_to_text(&buf, c, entry);
printf("%s\n", _buf);
}