Use strerror() consistently

This commit is contained in:
Pierre-Olivier Latour
2014-04-15 23:34:04 -03:00
parent 55a9abd506
commit c170fb4fd3
2 changed files with 7 additions and 7 deletions

View File

@@ -626,7 +626,7 @@ static NSString* _StringFromAddressData(NSData* data) {
int result = close(_socket);
if (result != 0) {
LOG_ERROR(@"Failed closing socket %i for connection (%i): %s", _socket, errno, strerror(errno));
LOG_ERROR(@"Failed closing socket %i for connection: %s (%i)", _socket, strerror(errno), errno);
} else {
LOG_DEBUG(@"Did close connection on socket %i", _socket);
}