From 1b14cb2f65b3c4795b59ee8fabd5554f688ccc33 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 12 Mar 2013 08:48:36 +0100 Subject: util: Log to stderr --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.c b/util.c index fc0630e..867a8e0 100644 --- a/util.c +++ b/util.c @@ -139,7 +139,7 @@ bind_socket(int socktype, const char *host, const char *port) hints.ai_family = AF_INET; hints.ai_socktype = socktype; - printf("bind to host: %s, %s.port: %s\n", + fprintf(stderr, "bind to host: %s, %s.port: %s\n", host, socktype == SOCK_STREAM ? "tcp" : "udp", port); s = getaddrinfo(host, port, &hints, &result); @@ -187,7 +187,7 @@ connect_to_host(int socktype, const char *host, const char *port) hints.ai_family = AF_INET; hints.ai_socktype = socktype; - printf("connect to host: %s, %s.port: %s\n", + fprintf(stderr, "connect to host: %s, %s.port: %s\n", host, socktype == SOCK_STREAM ? "tcp" : "udp", port); s = getaddrinfo(host, port, &hints, &result); -- cgit