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

[PATCH] bundle-uri: replace printf with fprintf in print_bundle_uri function

From
JGJan Mazur via GitGitGadget <gitgitgadget@gmail.com>
Date
Jun 4, 2025, 07:59 UTC
Message-ID
<pull.1985.git.git.1749023960409.gitgitgadget@gmail.com>
From: Jan Mazur <mzr@fb.com>
Signed-off-by: Jan Mazur <mzr@meta.com>
---
    bundle-uri: replace printf with fprintf in print_bundle_uri function
    
    Small fix to bundle-uri convenience debug function.
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1985%2Fmzr%2Fbundle_uri__print_bundle_list_fix-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1985/mzr/bundle_uri__print_bundle_list_fix-v1
Pull-Request: https://github.com/git/git/pull/1985
 bundle-uri.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bundle-uri.c b/bundle-uri.c
index 9accf157b44..c9d65aa0ce8 100644
--- a/bundle-uri.c
+++ b/bundle-uri.c
@@ -122,7 +122,7 @@ void print_bundle_list(FILE *fp, struct bundle_list *list)
 		int i;
 		for (i = 0; i < BUNDLE_HEURISTIC__COUNT; i++) {
 			if (heuristics[i].heuristic == list->heuristic) {
-				printf("\theuristic = %s\n",
+				fprintf(fp, "\theuristic = %s\n",
 				       heuristics[list->heuristic].name);
 				break;
 			}

base-commit: b07857f7dcffee4d3b428df8dce6c9b49a57c9c1
-- 
gitgitgadget
Next: Junio C Hamano
Message 1 of 3 in “bundle-uri: replace printf with fprintf in print_bundle_uri function”
  1. bundle-uri: replace printf with fprintf in print_bundle_uri functionJan Mazur via GitGitGadget, Jun 4, 2025
  2. Junio C HamanoJun 4, 2025
  3. bundle-uri: send debug output to given FILE * streamJan Mazur via GitGitGadget, Jun 4, 2025

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.