Skip to content

Commit 22a7338

Browse files
steadmongitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a446f2d commit 22a7338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trace2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ void trace2_data_json_fl(const char *file, int line, const char *category,
710710
us_elapsed_region = tr2tls_region_elasped_self(us_now);
711711

712712
for_each_wanted_builtin (j, tgt_j)
713-
if (tgt_j->pfn_data_fl)
713+
if (tgt_j->pfn_data_json_fl)
714714
tgt_j->pfn_data_json_fl(file, line, us_elapsed_absolute,
715715
us_elapsed_region, category,
716716
repo, key, value);

0 commit comments

Comments
 (0)