Git development
 help / color / mirror / Atom feed
* [Squash PATCH] fprintf(stderr, "Warning...") -> warning("...")
@ 2009-12-24 10:41 Ilari Liusvaara
  2009-12-28  9:24 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Ilari Liusvaara @ 2009-12-24 10:41 UTC (permalink / raw)
  To: git

Signed-off-by: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
---
 transport-helper.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

This fixes the small nit about fprintf(stderr, "Warning: ") by using
warning() API. 

It can be appiled on top of "Support remote helpers implementing smart
transports" or squashed to it.

diff --git a/transport-helper.c b/transport-helper.c
index 55427df..8c8ca8e 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -420,11 +420,10 @@ static int process_connect_service(struct transport *transport,
 	if (strcmp(name, exec)) {
 		r = set_helper_option(transport, "servpath", exec);
 		if (r > 0)
-			fprintf(stderr, "Warning: Setting remote service path "
-				"not supported by protocol.\n");
+			warning("Setting remote service path not supported "
+				"by protocol.\n");
 		else if (r < 0)
-			fprintf(stderr, "Warning: Invalid remote service "
-				"path.\n");
+			warning("Invalid remote service path.\n");
 	}
 
 	if (data->connect)
-- 
1.6.6.3.gaa2e1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-28  9:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-24 10:41 [Squash PATCH] fprintf(stderr, "Warning...") -> warning("...") Ilari Liusvaara
2009-12-28  9:24 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox