Skip to content

Commit 4232b21

Browse files
devzero2000gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7654286 commit 4232b21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/technical/api-trace.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static struct trace_key trace_foo = TRACE_KEY_INIT(FOO);
2828

2929
static void trace_print_foo(const char *message)
3030
{
31-
trace_print_key(&trace_foo, message);
31+
trace_printf_key(&trace_foo, "%s", message);
3232
}
3333
------------
3434
+

0 commit comments

Comments
 (0)