summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-07-28 20:18:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-07-28 20:18:04 (GMT)
commitaaf113ed95f58d83a81ccdaf32e41a5d8f1d98cf (patch)
tree89f13be2840fc8d7052441d8f3640a6896a3d980
parentfa8b225d864e00703c048d49ff523c3980d6a3b4 (diff)
parentc510928a25c4f7432f785b5f212d8f053495ae74 (diff)
downloadgit-aaf113ed95f58d83a81ccdaf32e41a5d8f1d98cf.zip
git-aaf113ed95f58d83a81ccdaf32e41a5d8f1d98cf.tar.gz
git-aaf113ed95f58d83a81ccdaf32e41a5d8f1d98cf.tar.bz2
Merge branch 'hn/refs-debug-empty-prefix'
Debugging aid. * hn/refs-debug-empty-prefix: refs/debug: quote prefix
-rw-r--r--refs/debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/refs/debug.c b/refs/debug.c
index 7db4abc..1a7a9e1 100644
--- a/refs/debug.c
+++ b/refs/debug.c
@@ -232,7 +232,8 @@ debug_ref_iterator_begin(struct ref_store *ref_store, const char *prefix,
struct debug_ref_iterator *diter = xcalloc(1, sizeof(*diter));
base_ref_iterator_init(&diter->base, &debug_ref_iterator_vtable, 1);
diter->iter = res;
- trace_printf_key(&trace_refs, "ref_iterator_begin: %s (0x%x)\n", prefix, flags);
+ trace_printf_key(&trace_refs, "ref_iterator_begin: \"%s\" (0x%x)\n",
+ prefix, flags);
return &diter->base;
}