summaryrefslogtreecommitdiff
path: root/src/socketengines/socketengine_poll.cpp
diff options
context:
space:
mode:
authorChrisTX <chris@rev-crew.info>2012-10-14 02:13:49 +0200
committerChrisTX <chris@rev-crew.info>2012-10-14 02:13:49 +0200
commitebdaf368e137fc933e648ee88a08a4f83e796f87 (patch)
tree72c7969e860704c99fc2fbe8537a248fa71f9e7e /src/socketengines/socketengine_poll.cpp
parent272208502c426f5bb6abdb13b8986b686afbb904 (diff)
Replace printf(_c) with iostream
Diffstat (limited to 'src/socketengines/socketengine_poll.cpp')
-rw-r--r--src/socketengines/socketengine_poll.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/socketengines/socketengine_poll.cpp b/src/socketengines/socketengine_poll.cpp
index dd38c32b9..6a385c8d8 100644
--- a/src/socketengines/socketengine_poll.cpp
+++ b/src/socketengines/socketengine_poll.cpp
@@ -26,6 +26,7 @@
#ifndef SOCKETENGINE_POLL
#define SOCKETENGINE_POLL
+#include <iostream>
#include <vector>
#include <string>
#include <map>
@@ -92,7 +93,7 @@ PollEngine::PollEngine()
else
{
ServerInstance->Logs->Log("SOCKET", DEFAULT, "ERROR: Can't determine maximum number of open sockets: %s", strerror(errno));
- printf("ERROR: Can't determine maximum number of open sockets: %s\n", strerror(errno));
+ std::cout << "ERROR: Can't determine maximum number of open sockets: " << strerror(errno) << std::endl;
ServerInstance->Exit(EXIT_STATUS_SOCKETENGINE);
}
#else