diff options
author | Attila Molnar <attilamolnar@hush.com> | 2012-10-14 12:40:52 -0700 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2012-10-14 12:40:52 -0700 |
commit | 336e30f61f9cb04620f5be46189753636f4f9d49 (patch) | |
tree | 944335aad069ebf520772a6a46268bce1879c23b /src/socketengines/socketengine_poll.cpp | |
parent | 81e644a40b7eead5402fe38ccb7f076b54344911 (diff) | |
parent | ebdaf368e137fc933e648ee88a08a4f83e796f87 (diff) |
Merge pull request #338 from ChrisTX/insp20+iostream
Replace printf(_c) with iostream
Diffstat (limited to 'src/socketengines/socketengine_poll.cpp')
-rw-r--r-- | src/socketengines/socketengine_poll.cpp | 3 |
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 |