mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 10:40:01 +01:00
Added target/destination IP & port of sceNetAdhocPtpConnect in the log to get better insight
This commit is contained in:
1 parent
5153b60637
commit
581ba6c326
1 file changed
+2
-2
@@ -2277,7 +2277,7 @@ static int sceNetAdhocPtpConnect(int id, int timeout, int flag) {
|
||||
int errorcode = errno;
|
||||
|
||||
if (connectresult == SOCKET_ERROR) {
|
||||
ERROR_LOG(SCENET, "sceNetAdhocPtpConnect[%i]: Socket Error (%i)", id, errorcode);
|
||||
ERROR_LOG(SCENET, "sceNetAdhocPtpConnect[%i]: Socket Error (%i) to %s:%u", id, errorcode, inet_ntoa(sin.sin_addr), socket->pport);
|
||||
}
|
||||
|
||||
// Restore Blocking Behaviour
|
||||
@@ -2292,7 +2292,7 @@ static int sceNetAdhocPtpConnect(int id, int timeout, int flag) {
|
||||
// Set Connected State
|
||||
socket->state = ADHOC_PTP_STATE_ESTABLISHED;
|
||||
|
||||
INFO_LOG(SCENET, "sceNetAdhocPtpConnect[%i:%u]: Already Connected", id, socket->lport);
|
||||
INFO_LOG(SCENET, "sceNetAdhocPtpConnect[%i:%u]: Already Connected to %s:%u", id, socket->lport, inet_ntoa(sin.sin_addr), socket->pport);
|
||||
// Success
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user