git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] trace2: fix incorrect function pointer check

From
JHJeff Hostetler <git@jeffhostetler.com>
Date
Apr 29, 2019, 13:01 UTC
Message-ID
<09415b8f-d07f-5928-06d3-d905a7a30c09@jeffhostetler.com>
In-Reply-To
<548a9b833f4569c526cf94c048ae115a76d54be9.1556211995.git.steadmon@google.com>
On 4/25/2019 1:08 PM, Josh Steadmon wrote:
Show 22 quoted lines
> 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>
> ---
>   trace2.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/trace2.c b/trace2.c
> index 8bbad56887..a73cfdf6fe 100644
> --- a/trace2.c
> +++ b/trace2.c
> @@ -717,7 +717,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);
> 
good catch.  thanks.
Jeff
Previous: Junio C Hamano
Message 4 of 4 in “trace2: fix incorrect function pointer check”
  1. trace2: fix incorrect function pointer checkJosh Steadmon, Apr 25, 2019
  2. Derrick StoleeApr 25, 2019
  3. Junio C HamanoApr 26, 2019
  4. Jeff HostetlerApr 29, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.