changeset 13798:24b768639db5

[gaim-migrate @ 16210] Brian Chu suggested that we print to stdout instead of stderr to make redirection cleaner because the gaim_debug stuff prints to stdout. I swear I committed this before, but I guess I didn't. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 30 May 2006 22:22:52 +0000
parents d0128f0efe96
children c9ce13a3d934
files src/proxy.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/proxy.c	Tue May 30 22:21:00 2006 +0000
+++ b/src/proxy.c	Tue May 30 22:22:52 2006 +0000
@@ -386,7 +386,7 @@
 		rc = select(child_in + 1, &fds, NULL, NULL, &tv);
 		if (!rc) {
 			if (show_debug)
-				fprintf(stderr,"dns[%d]: nobody needs me... =(\n", getpid());
+				printf("dns[%d]: nobody needs me... =(\n", getpid());
 			break;
 		}
 		rc = read(child_in, &dns_params, sizeof(dns_params_t));
@@ -396,11 +396,11 @@
 		}
 		if (rc == 0) {
 			if (show_debug)
-				fprintf(stderr,"dns[%d]: Oops, father has gone, wait for me, wait...!\n", getpid());
+				printf("dns[%d]: Oops, father has gone, wait for me, wait...!\n", getpid());
 			_exit(0);
 		}
 		if (dns_params.hostname[0] == '\0') {
-			fprintf(stderr, "dns[%d]: hostname = \"\" (port = %d)!!!\n", getpid(), dns_params.port);
+			printf("dns[%d]: hostname = \"\" (port = %d)!!!\n", getpid(), dns_params.port);
 			_exit(1);
 		}
 		/* Tell our parent that we read the data successfully */
@@ -424,7 +424,7 @@
 		if (rc != 0) {
 			close(child_out);
 			if (show_debug)
-				fprintf(stderr,"dns[%d] Error: getaddrinfo returned %d\n",
+				printf("dns[%d] Error: getaddrinfo returned %d\n",
 					getpid(), rc);
 			dns_params.hostname[0] = '\0';
 			continue;
@@ -445,7 +445,7 @@
 				write(child_out, &h_errno, sizeof(int));
 				close(child_out);
 				if (show_debug)
-					fprintf(stderr,"DNS Error: %d\n", h_errno);
+					printf("DNS Error: %d\n", h_errno);
 				_exit(0);
 			}
 			memset(&sin, 0, sizeof(struct sockaddr_in));