BACKENDS: Remove extra line returns in warnings

This commit is contained in:
Bastien Bouclet 2016-09-01 19:20:28 +02:00
parent cd86de0dc2
commit 25bf68c39a

View file

@ -273,11 +273,11 @@ void LocalWebserver::resolveAddress(void *ipAddress) {
// default way (might work everywhere, surely works on Windows) // default way (might work everywhere, surely works on Windows)
const char *name = SDLNet_ResolveIP(ip); const char *name = SDLNet_ResolveIP(ip);
if (name == NULL) { if (name == NULL) {
warning("LocalWebserver: SDLNet_ResolveHost: %s\n", SDLNet_GetError()); warning("LocalWebserver: SDLNet_ResolveIP: %s", SDLNet_GetError());
} else { } else {
IPaddress localIp; IPaddress localIp;
if (SDLNet_ResolveHost(&localIp, name, _serverPort) == -1) { if (SDLNet_ResolveHost(&localIp, name, _serverPort) == -1) {
warning("LocalWebserver: SDLNet_ResolveHost: %s\n", SDLNet_GetError()); warning("LocalWebserver: SDLNet_ResolveHost: %s", SDLNet_GetError());
} else { } else {
_address = Common::String::format( _address = Common::String::format(
"http://%u.%u.%u.%u:%u/", "http://%u.%u.%u.%u:%u/",