Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
api-trace.txt: fix typo
author
Elia Pinto
<gitter.spiros@gmail.com>
Tue, 5 Apr 2016 10:05:23 +0000
(10:05 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 5 Apr 2016 20:51:25 +0000
(13:51 -0700)
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>
Documentation/technical/api-trace.txt
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
7654286
)
diff --git
a/Documentation/technical/api-trace.txt
b/Documentation/technical/api-trace.txt
index 097a651d9680ea31c1a5a0e522a77ccec96c6b69..0aa0fda2c9805e04e9a2d873a9271a751dc0d78f 100644
(file)
--- a/
Documentation/technical/api-trace.txt
+++ b/
Documentation/technical/api-trace.txt
@@
-28,7
+28,7
@@
static struct trace_key trace_foo = TRACE_KEY_INIT(FOO);
static void trace_print_foo(const char *message)
{
- trace_print
_key(&trace_foo
, message);
+ trace_print
f_key(&trace_foo, "%s"
, message);
}
------------
+