From 50f90f15c471e0b8d5bacf1494d6f5279b8d6fc7 Mon Sep 17 00:00:00 2001
From: Erik Zandvliet <erik.zandvliet@ddvtech.com>
Date: Mon, 1 Aug 2011 02:32:48 +0200
Subject: [PATCH] Socket lib output changed to stderr

---
 util/socket.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/util/socket.cpp b/util/socket.cpp
index 60c3c69e..e3d9fb20 100644
--- a/util/socket.cpp
+++ b/util/socket.cpp
@@ -404,19 +404,19 @@ Socket::Connection Socket::Server::accept(bool nonblock){
     if (addrinfo.sin6_family == AF_INET6){
       tmp.remotehost = inet_ntop(AF_INET6, &(addrinfo.sin6_addr), addrconv, INET6_ADDRSTRLEN);
       #if DEBUG >= 4
-      printf("IPv6 addr: %s\n", tmp.remotehost.c_str());
+      fprintf(stderr,"IPv6 addr: %s\n", tmp.remotehost.c_str());
       #endif
     }
     if (addrinfo.sin6_family == AF_INET){
       tmp.remotehost = inet_ntop(AF_INET, &(((sockaddr_in*)&addrinfo)->sin_addr), addrconv, INET6_ADDRSTRLEN);
       #if DEBUG >= 4
-      printf("IPv4 addr: %s\n", tmp.remotehost.c_str());
+      fprintf(stderr,"IPv4 addr: %s\n", tmp.remotehost.c_str());
       #endif
     }
     if (addrinfo.sin6_family == AF_UNIX){
       #if DEBUG >= 4
       tmp.remotehost = ((sockaddr_un*)&addrinfo)->sun_path;
-      printf("Unix addr: %s\n", tmp.remotehost.c_str());
+      fprintf(stderr,"Unix addr: %s\n", tmp.remotehost.c_str());
       #endif
       tmp.remotehost = "UNIX_SOCKET";
     }