Skip to content

Commit

Permalink
trace2: fix incorrect function pointer check
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
steadmon authored and gitster committed Apr 26, 2019
1 parent a446f2d commit 22a7338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trace2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 22a7338

Please sign in to comment.