Skip to content

Commit

Permalink
Merge pull request #5430 from sepalani/connect-log
Browse files Browse the repository at this point in the history
IOS/Network: Log IOCTL_SO_CONNECT return value
  • Loading branch information
leoetlino committed May 15, 2017
2 parents ed5e98c + b323c8b commit d2d7247
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Core/Core/IOS/Network/Socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ void WiiSocket::Update(bool read, bool write, bool except)
int ret = bind(fd, (sockaddr*)&local_name, sizeof(local_name));
ReturnValue = WiiSockMan::GetNetErrorCode(ret, "SO_BIND", false);

INFO_LOG(IOS_NET, "IOCTL_SO_BIND (%08X %s:%d) = %d ", fd, inet_ntoa(local_name.sin_addr),
INFO_LOG(IOS_NET, "IOCTL_SO_BIND (%08X %s:%d) = %d", fd, inet_ntoa(local_name.sin_addr),
Common::swap16(local_name.sin_port), ret);
break;
}
Expand All @@ -233,8 +233,8 @@ void WiiSocket::Update(bool read, bool write, bool except)
int ret = connect(fd, (sockaddr*)&local_name, sizeof(local_name));
ReturnValue = WiiSockMan::GetNetErrorCode(ret, "SO_CONNECT", false);

INFO_LOG(IOS_NET, "IOCTL_SO_CONNECT (%08x, %s:%d)", fd, inet_ntoa(local_name.sin_addr),
Common::swap16(local_name.sin_port));
INFO_LOG(IOS_NET, "IOCTL_SO_CONNECT (%08x, %s:%d) = %d", fd, inet_ntoa(local_name.sin_addr),
Common::swap16(local_name.sin_port), ret);
break;
}
case IOCTL_SO_ACCEPT:
Expand Down

0 comments on commit d2d7247

Please sign in to comment.