# HG changeset patch # User Richard Laager # Date 1149027772 0 # Node ID 24b768639db550ce3597d0fdd8d171e3aed54b56 # Parent d0128f0efe9625c529902ed3e97411693da5e8c3 [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 diff -r d0128f0efe96 -r 24b768639db5 src/proxy.c --- 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));