summaryrefslogtreecommitdiffstats
path: root/trace2.h
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhostetler@github.com>2023-11-22 20:18:34 +0100
committerJunio C Hamano <gitster@pobox.com>2023-11-23 02:30:32 +0100
commitabcdb978ea13010357ef2bf265f7bf0c55f96dbe (patch)
tree7689e2828b62c670e672710364cf4ed0f563309a /trace2.h
parentGit 2.42.1 (diff)
downloadgit-abcdb978ea13010357ef2bf265f7bf0c55f96dbe.tar.xz
git-abcdb978ea13010357ef2bf265f7bf0c55f96dbe.zip
trace2: fix signature of trace2_def_param() macro
Add `struct key_value_info` argument to `trace2_def_param()`. In dc90208497 (trace2: plumb config kvi, 2023-06-28) a `kvi` argument was added to `trace2_def_param_fl()` but the macro was not up updated. Let's fix that. Signed-off-by: Jeff Hostetler <jeffhostetler@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace2.h')
-rw-r--r--trace2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/trace2.h b/trace2.h
index 40d8c2e02a..1f0669bbd2 100644
--- a/trace2.h
+++ b/trace2.h
@@ -337,8 +337,8 @@ struct key_value_info;
void trace2_def_param_fl(const char *file, int line, const char *param,
const char *value, const struct key_value_info *kvi);
-#define trace2_def_param(param, value) \
- trace2_def_param_fl(__FILE__, __LINE__, (param), (value))
+#define trace2_def_param(param, value, kvi) \
+ trace2_def_param_fl(__FILE__, __LINE__, (param), (value), (kvi))
/*
* Tell trace2 about a newly instantiated repo object and assign