summaryrefslogtreecommitdiff
path: root/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace.c')
-rw-r--r--trace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/trace.c b/trace.c
index 5ec0e3bd16..08180a90bc 100644
--- a/trace.c
+++ b/trace.c
@@ -75,7 +75,8 @@ static void trace_vprintf(const char *key, const char *fmt, va_list ap)
strbuf_release(&buf);
}
-static void trace_printf_key(const char *key, const char *fmt, ...)
+__attribute__((format (printf, 2, 3)))
+void trace_printf_key(const char *key, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);