summaryrefslogtreecommitdiff
path: root/cmd_debug.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-03-30 20:31:28 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2022-03-30 20:31:28 -0400
commit6692c6f9d3feb8dffb34fc01c36e03765238c842 (patch)
tree3598239bd79028623c351983d43423fcce850837 /cmd_debug.c
parente240b4ae86adb022e3266220ce9807dad8b51beb (diff)
cmd_list_journal: Tweak for new log entries
We use entry->level to denote which log entries indicate the start of a transaction - this updates cmd_list_journal to format them correctly. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'cmd_debug.c')
-rw-r--r--cmd_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd_debug.c b/cmd_debug.c
index 159835b8..8b2cb43b 100644
--- a/cmd_debug.c
+++ b/cmd_debug.c
@@ -662,7 +662,7 @@ int cmd_list_journal(int argc, char *argv[])
* log entries denote the start of a new transaction
* commit:
*/
- if (entry->type == BCH_JSET_ENTRY_log)
+ if (entry->type == BCH_JSET_ENTRY_log && !entry->level)
pr_newline(&buf);
pr_indent_push(&buf, 4);
bch2_journal_entry_to_text(&buf, c, entry);