All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Mazur via GitGitGadget" <gitgitgadget@gmail.com>
To: git@vger.kernel.org
Cc: "Derrick Stolee [ ]" <stolee@gmail.com>, Jan Mazur <mzr@meta.com>,
	Jan Mazur <mzr@fb.com>
Subject: [PATCH] bundle-uri: replace printf with fprintf in print_bundle_uri function
Date: Wed, 04 Jun 2025 07:59:20 +0000	[thread overview]
Message-ID: <pull.1985.git.git.1749023960409.gitgitgadget@gmail.com> (raw)

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

             reply	other threads:[~2025-06-04  7:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-04  7:59 Jan Mazur via GitGitGadget [this message]
2025-06-04 16:09 ` [PATCH] bundle-uri: replace printf with fprintf in print_bundle_uri function Junio C Hamano
2025-06-04 17:11 ` [PATCH v2] bundle-uri: send debug output to given FILE * stream Jan Mazur via GitGitGadget

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=pull.1985.git.git.1749023960409.gitgitgadget@gmail.com \
    --to=gitgitgadget@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=mzr@fb.com \
    --cc=mzr@meta.com \
    --cc=stolee@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.