From: Josh Steadmon Date: Thu, 25 Apr 2019 17:08:53 +0000 (-0700) Subject: trace2: fix incorrect function pointer check X-Git-Tag: v2.22.0-rc0~1^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/22a7338318e3709b578d5c041af0afaf95b8fe21?ds=inline;hp=--cc 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 Signed-off-by: Junio C Hamano --- 22a7338318e3709b578d5c041af0afaf95b8fe21 diff --git a/trace2.c b/trace2.c index ccccd4ef09..590e5542c5 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);