From 581ba6c326dde125edbefba8be99e72a4fe362c3 Mon Sep 17 00:00:00 2001 From: ANR2ME Date: Fri, 24 Jul 2020 08:28:42 +0700 Subject: [PATCH] Added target/destination IP & port of sceNetAdhocPtpConnect in the log to get better insight --- Core/HLE/sceNetAdhoc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceNetAdhoc.cpp b/Core/HLE/sceNetAdhoc.cpp index e44f568611..d61dc4cd79 100644 --- a/Core/HLE/sceNetAdhoc.cpp +++ b/Core/HLE/sceNetAdhoc.cpp @@ -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; }