Skip to content

Commit c510928

Browse files
hanwengitster
authored andcommitted
refs/debug: quote prefix
This makes the empty prefix ("") stand out better. Signed-off-by: Han-Wen Nienhuys <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ebf3c04 commit c510928

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

refs/debug.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ debug_ref_iterator_begin(struct ref_store *ref_store, const char *prefix,
232232
struct debug_ref_iterator *diter = xcalloc(1, sizeof(*diter));
233233
base_ref_iterator_init(&diter->base, &debug_ref_iterator_vtable, 1);
234234
diter->iter = res;
235-
trace_printf_key(&trace_refs, "ref_iterator_begin: %s (0x%x)\n", prefix, flags);
235+
trace_printf_key(&trace_refs, "ref_iterator_begin: \"%s\" (0x%x)\n",
236+
prefix, flags);
236237
return &diter->base;
237238
}
238239

0 commit comments

Comments
 (0)