From: <rl...@us...> - 2006-05-30 22:22:57
|
Revision: 16210 Author: rlaager Date: 2006-05-30 15:22:52 -0700 (Tue, 30 May 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16210&view=rev Log Message: ----------- 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. Modified Paths: -------------- trunk/src/proxy.c Modified: trunk/src/proxy.c =================================================================== --- trunk/src/proxy.c 2006-05-30 22:21:00 UTC (rev 16209) +++ trunk/src/proxy.c 2006-05-30 22:22:52 UTC (rev 16210) @@ -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)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |