api-trace.txt: fix typo

The correct api is trace_printf_key(), not trace_print_key(). Also do not throw a random string at printf(3)-like function; instead, feed it as a parameter that is fed to a "%s" conversion specifier. Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Elia Pinto committed Apr 5, 2016 at 10:05 UTC 4232b21f772fd66c028245cf997373be9ce369f7
1 file changed +1 -1
Documentation/technical/api-trace.txt
+1 -1
@@ -28,7 +28,7 @@ static struct trace_key trace_foo = TRACE_KEY_INIT(FOO);
28
29 static void trace_print_foo(const char *message)
30 {
31 - trace_print_key(&trace_foo, message);
31 + trace_printf_key(&trace_foo, "%s", message);
32 }
33 ------------
34 +