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>
This commit is contained in:
Elia Pinto 2016-04-05 10:05:23 +00:00 committed by Junio C Hamano
parent 765428699a
commit 4232b21f77

View File

@ -28,7 +28,7 @@ static struct trace_key trace_foo = TRACE_KEY_INIT(FOO);
static void trace_print_foo(const char *message) static void trace_print_foo(const char *message)
{ {
trace_print_key(&trace_foo, message); trace_printf_key(&trace_foo, "%s", message);
} }
------------ ------------
+ +