trace2: fix incorrect function pointer check
[gitweb.git] / trace2.c
index ccccd4ef0919eebe1eff5834df3016778b0459d1..590e5542c54f70145913740ca6d508b401780841 100644 (file)
--- 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);