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

Re: [PATCH 4/4] trace2 docs: clarify what `varargs` is all about

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Mar 10, 2022, 14:37 UTC
Message-ID
<220310.86ee39kh0v.gmgdl@evledraar.gmail.com>
In-Reply-To
<2eecea50e5132b09574451f37ca76a5d4af8697f.1646919331.git.gitgitgadget@gmail.com>
On Thu, Mar 10 2022, Johannes Schindelin via GitGitGadget wrote:
Show 17 quoted lines
> From: Johannes Schindelin <johannes.schindelin@gmx.de>
>
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> ---
>  Documentation/technical/api-trace2.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/technical/api-trace2.txt b/Documentation/technical/api-trace2.txt
> index 285f713ed84..91985512867 100644
> --- a/Documentation/technical/api-trace2.txt
> +++ b/Documentation/technical/api-trace2.txt
> @@ -170,7 +170,7 @@ Some functions have a `_va_fl()` suffix to indicate that they also
>  take a `va_list` argument.
>  
>  Some functions have a `_printf_fl()` suffix to indicate that they also
> -take a varargs argument.
> +take a `printf()` style format with a variable number of arguments.

This is correct, but I think better would be to explicitly describe the _printf_va_fl() suffix in this list, i.e. now that implicitly falls under _va_fl(), so it's *technically* redundant.

But either describing it explicitly, or saying that `_printf_*_fl()` are function that take a printf format before either a "va_args" or "..." would make the end-state a bit more obvious.

I wonder if the pre-image wanted to describe `_printf_va_fl()` (which would make it correct), and we just omitted a `printf_fl()` description.

Previous: Johannes Schindelin via GitGitGadgetNext: Jeff Hostetler
Message 10 of 19 in “A couple of fixes for the Trace2 documentation”
  1. 0/4 A couple of fixes for the Trace2 documentationJohannes Schindelin via GitGitGadget, Mar 10, 2022
  2. 1/4 trace2 docs: a couple of grammar fixesJohannes Schindelin via GitGitGadget, Mar 10, 2022
  3. Ævar Arnfjörð BjarmasonMar 10, 2022
  4. Junio C HamanoMar 10, 2022
  5. Junio C HamanoMar 10, 2022
  6. 2/4 trace2 docs: surround more terms in backticksJohannes Schindelin via GitGitGadget, Mar 10, 2022
  7. Junio C HamanoMar 10, 2022
  8. 3/4 trace2 docs: fix a JSON formatted exampleJohannes Schindelin via GitGitGadget, Mar 10, 2022
  9. 4/4 trace2 docs: clarify what `varargs` is all aboutJohannes Schindelin via GitGitGadget, Mar 10, 2022
  10. Ævar Arnfjörð BjarmasonMar 10, 2022
  11. Jeff HostetlerMar 10, 2022
  12. 0/6 A couple of fixes for the Trace2 documentationJohannes Schindelin via GitGitGadget, May 3, 2022
  13. 1/6 trace2 docs: a couple of grammar fixesJohannes Schindelin via GitGitGadget, May 3, 2022
  14. 2/6 trace2 docs: "printf" is not an English wordJohannes Schindelin via GitGitGadget, May 3, 2022
  15. 6/6 trace2 docs: add missing full stopJohannes Schindelin via GitGitGadget, May 3, 2022
  16. 5/6 trace2 docs: clarify what `varargs` is all aboutJohannes Schindelin via GitGitGadget, May 3, 2022
  17. 3/6 trace2 docs: surround more terms in backticksJohannes Schindelin via GitGitGadget, May 3, 2022
  18. 4/6 trace2 docs: fix a JSON formatted exampleJohannes Schindelin via GitGitGadget, May 3, 2022
  19. Jeff HostetlerMay 3, 2022

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.