diff options
author | Alexander Tkachev | 2016-07-23 12:52:27 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 15c6772ff7638e104027f7b7777180e6191841fc (patch) | |
tree | 7887ce51ef6c3d6fd7ab574aa0e7da85d47067f8 /backends/networking/sdl_net/client.cpp | |
parent | d57e0c89b5b20dac247cb2f43450014d84719ba6 (diff) | |
download | scummvm-rg350-15c6772ff7638e104027f7b7777180e6191841fc.tar.gz scummvm-rg350-15c6772ff7638e104027f7b7777180e6191841fc.tar.bz2 scummvm-rg350-15c6772ff7638e104027f7b7777180e6191841fc.zip |
ALL: Fix debug, warning and error usage
Added prefixes, used debug(9).
Diffstat (limited to 'backends/networking/sdl_net/client.cpp')
-rw-r--r-- | backends/networking/sdl_net/client.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/networking/sdl_net/client.cpp b/backends/networking/sdl_net/client.cpp index 0026d0e346..dab38ba5c0 100644 --- a/backends/networking/sdl_net/client.cpp +++ b/backends/networking/sdl_net/client.cpp @@ -62,7 +62,7 @@ void Client::open(SDLNet_SocketSet set, TCPsocket socket) { if (set) { int numused = SDLNet_TCP_AddSocket(set, socket); if (numused == -1) { - error("SDLNet_AddSocket: %s\n", SDLNet_GetError()); + error("Client: SDLNet_AddSocket: %s\n", SDLNet_GetError()); } } } @@ -79,13 +79,13 @@ bool Client::readMoreIfNeeded() { int bytes = SDLNet_TCP_Recv(_socket, _buffer, CLIENT_BUFFER_SIZE); if (bytes <= 0) { - warning("Client::readHeaders recv fail"); + warning("Client::readMoreIfNeeded: recv fail"); close(); return false; } if (_stream->write(_buffer, bytes) != bytes) { - warning("failed to write() into MemoryReadWriteStream"); + warning("Client::readMoreIfNeeded: failed to write() into MemoryReadWriteStream"); close(); return false; } @@ -146,7 +146,7 @@ void Client::close() { if (_socket) { int numused = SDLNet_TCP_DelSocket(_set, _socket); if (numused == -1) - error("SDLNet_DelSocket: %s\n", SDLNet_GetError()); + error("Client: SDLNet_DelSocket: %s\n", SDLNet_GetError()); } _set = nullptr; } |