summaryrefslogtreecommitdiff
path: root/Documentation/technical/api-trace.txt
diff options
context:
space:
mode:
authorElia Pinto <gitter.spiros@gmail.com>2016-04-05 10:05:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-04-05 20:51:25 (GMT)
commit4232b21f772fd66c028245cf997373be9ce369f7 (patch)
tree011c21ff7968f8b3e6d6d7628930cb1b9474fe69 /Documentation/technical/api-trace.txt
parent765428699a5381f113d19974720bc91b5bfeaf1d (diff)
downloadgit-4232b21f772fd66c028245cf997373be9ce369f7.zip
git-4232b21f772fd66c028245cf997373be9ce369f7.tar.gz
git-4232b21f772fd66c028245cf997373be9ce369f7.tar.bz2
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>
Diffstat (limited to 'Documentation/technical/api-trace.txt')
-rw-r--r--Documentation/technical/api-trace.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/technical/api-trace.txt b/Documentation/technical/api-trace.txt
index 097a651..0aa0fda 100644
--- 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_printf_key(&trace_foo, "%s", message);
}
------------
+