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

[PATCH v2 2/6] trace2 docs: "printf" is not an English word

From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
Date
May 3, 2022, 10:26 UTC
Message-ID
<3c1ca34927a6634bcfaf444cf0712f74ac48311e.1651573607.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.1172.v2.git.1651573607.gitgitgadget@gmail.com>
From: Johannes Schindelin <johannes.schindelin@gmx.de>

We append an ellipsis and enclose it in backticks to indicate that it is a function elsewhere, let's also use that here.

While at it, ensure the same for `waitpid()`.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 Documentation/technical/api-trace2.txt | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Documentation/technical/api-trace2.txt b/Documentation/technical/api-trace2.txt
index adf867e1013..1f1a06eabc6 100644
--- a/Documentation/technical/api-trace2.txt
+++ b/Documentation/technical/api-trace2.txt
@@ -5,7 +5,7 @@ information to stderr or a file.  The Trace2 feature is inactive unless
 explicitly enabled by enabling one or more Trace2 Targets.
 
 The Trace2 API is intended to replace the existing (Trace1)
-printf-style tracing provided by the existing `GIT_TRACE` and
+`printf()`-style tracing provided by the existing `GIT_TRACE` and
 `GIT_TRACE_PERFORMANCE` facilities.  During initial implementation,
 Trace2 and Trace1 may operate in parallel.
 
@@ -34,7 +34,7 @@ Format details are given in a later section.
 
 === The Normal Format Target
 
-The normal format target is a traditional printf format and similar
+The normal format target is a traditional `printf()` format and similar
 to the GIT_TRACE format.  This format is enabled with the `GIT_TRACE2`
 environment variable or the `trace2.normalTarget` system or global
 config setting.
@@ -234,7 +234,7 @@ Events are written as lines of the form:
 	is the event name.
 
 `<event-message>`::
-	is a free-form printf message intended for human consumption.
+	is a free-form `printf()` message intended for human consumption.
 +
 Note that this may contain embedded LF or CRLF characters that are
 not escaped, so the event may spill across multiple lines.
@@ -300,7 +300,7 @@ This field is in anticipation of in-proc submodules in the future.
 	indicate a broad category, such as "index" or "status".
 
 `<perf-event-message>`::
-	is a free-form printf message intended for human consumption.
+	is a free-form `printf()` message intended for human consumption.
 
 ------------
 15:33:33.532712 wt-status.c:2310                  | d0 | main                     | region_enter | r1  |  0.126064 |           | status     | label:print
@@ -588,7 +588,7 @@ with "?".
 
 `"child_exit"`::
 	This event is generated after the current process has returned
-	from the waitpid() and collected the exit information from the
+	from the `waitpid()` and collected the exit information from the
 	child.
 +
 ------------
@@ -609,7 +609,7 @@ process may be a shell script which doesn't have a session-id.)
 +
 Note that the `t_rel` field contains the observed run time in seconds
 for the child process (starting before the fork/exec/spawn and
-stopping after the waitpid() and includes OS process creation overhead).
+stopping after the `waitpid()` and includes OS process creation overhead).
 So this time will be slightly larger than the atexit time reported by
 the child process itself.
 
-- 
gitgitgadget
Previous: Johannes Schindelin via GitGitGadgetNext: Johannes Schindelin via GitGitGadget
Message 14 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.