summaryrefslogtreecommitdiff
path: root/trace2.c
diff options
context:
space:
mode:
authorJosh Steadmon <steadmon@google.com>2019-04-25 17:08:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-04-26 02:44:00 (GMT)
commit22a7338318e3709b578d5c041af0afaf95b8fe21 (patch)
tree1bd5348496d59aa1fc477889d9dc08b4bb362982 /trace2.c
parenta446f2dcc8db1e64bb9152de1126ee06bc723304 (diff)
downloadgit-22a7338318e3709b578d5c041af0afaf95b8fe21.zip
git-22a7338318e3709b578d5c041af0afaf95b8fe21.tar.gz
git-22a7338318e3709b578d5c041af0afaf95b8fe21.tar.bz2
trace2: fix incorrect function pointer check
Fix trace2_data_json_fl() to check for the presence of pfn_data_json_fl in its targets, rather than pfn_data_fl, which is not actually called. Signed-off-by: Josh Steadmon <steadmon@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace2.c')
-rw-r--r--trace2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trace2.c b/trace2.c
index ccccd4e..590e554 100644
--- a/trace2.c
+++ b/trace2.c
@@ -710,7 +710,7 @@ void trace2_data_json_fl(const char *file, int line, const char *category,
us_elapsed_region = tr2tls_region_elasped_self(us_now);
for_each_wanted_builtin (j, tgt_j)
- if (tgt_j->pfn_data_fl)
+ if (tgt_j->pfn_data_json_fl)
tgt_j->pfn_data_json_fl(file, line, us_elapsed_absolute,
us_elapsed_region, category,
repo, key, value);