diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-12 08:48:36 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-12 08:48:36 +0100 |
commit | 1b14cb2f65b3c4795b59ee8fabd5554f688ccc33 (patch) | |
tree | 112e0888ccc306054bd6b54ec311beb6a26440ab | |
parent | 1249e72d92be71fd05846e9cdd3cc2523cd58816 (diff) | |
download | econ-1b14cb2f65b3c4795b59ee8fabd5554f688ccc33.tar.gz econ-1b14cb2f65b3c4795b59ee8fabd5554f688ccc33.tar.bz2 econ-1b14cb2f65b3c4795b59ee8fabd5554f688ccc33.zip |
util: Log to stderr
-rw-r--r-- | util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |