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>

Josh Steadmon committed Apr 25, 2019 at 10:08 UTC 22a7338318e3709b578d5c041af0afaf95b8fe21
1 file changed +1 -1
trace2.c
+1 -1
@@ -710,7 +710,7 @@ void trace2_data_json_fl(const char *file, int line, const char *category,
710 us_elapsed_region = tr2tls_region_elasped_self(us_now);
711
712 for_each_wanted_builtin (j, tgt_j)
713 - if (tgt_j->pfn_data_fl)
713 + if (tgt_j->pfn_data_json_fl)
714 tgt_j->pfn_data_json_fl(file, line, us_elapsed_absolute,
715 us_elapsed_region, category,
716 repo, key, value);