mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Shows PSP error code as hex to be easier to find
This commit is contained in:
parent
e508885cc4
commit
7336ec6a81
2 changed files with 8 additions and 8 deletions
|
@ -141,7 +141,7 @@ static void __ApctlState(u64 userdata, int cyclesLate) {
|
|||
|
||||
SceUID waitID = __KernelGetWaitID(threadID, WAITTYPE_NET, error);
|
||||
if (waitID == 0 || error != 0) {
|
||||
WARN_LOG(SCENET, "sceNetApctl State WaitID(%i) on Thread(%i) already woken up? (error: %d)", uid, threadID, error);
|
||||
WARN_LOG(SCENET, "sceNetApctl State WaitID(%i) on Thread(%i) already woken up? (error: %08x)", uid, threadID, error);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -151,7 +151,7 @@ static void __ApctlState(u64 userdata, int cyclesLate) {
|
|||
}
|
||||
|
||||
__KernelResumeThreadFromWait(threadID, result);
|
||||
DEBUG_LOG(SCENET, "Returning (WaitID: %d, error: %d) Result (%08x) of sceNetApctl - Event: %d, State: %d", waitID, error, (int)result, event, netApctlState);
|
||||
DEBUG_LOG(SCENET, "Returning (WaitID: %d, error: %08x) Result (%08x) of sceNetApctl - Event: %d, State: %d", waitID, error, (int)result, event, netApctlState);
|
||||
}
|
||||
|
||||
// Used to change Apctl State after a delay and before executing callback mipscall (since we don't have beforeAction)
|
||||
|
|
|
@ -250,7 +250,7 @@ static void __AdhocctlNotify(u64 userdata, int cyclesLate) {
|
|||
|
||||
SceUID waitID = __KernelGetWaitID(threadID, WAITTYPE_NET, error);
|
||||
if (waitID == 0 || error != 0) {
|
||||
WARN_LOG(SCENET, "sceNetAdhocctl Socket WaitID(%i) on Thread(%i) already woken up? (error: %d)", uid, threadID, error);
|
||||
WARN_LOG(SCENET, "sceNetAdhocctl Socket WaitID(%i) on Thread(%i) already woken up? (error: %08x)", uid, threadID, error);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -316,7 +316,7 @@ static void __AdhocctlNotify(u64 userdata, int cyclesLate) {
|
|||
|
||||
u32 waitVal = __KernelGetWaitValue(threadID, error);
|
||||
__KernelResumeThreadFromWait(threadID, result);
|
||||
DEBUG_LOG(SCENET, "Returning (WaitID: %d, error: %d) Result (%08x) of sceNetAdhocctl - Opcode: %d, State: %d", waitID, error, (int)result, waitVal, adhocctlState);
|
||||
DEBUG_LOG(SCENET, "Returning (WaitID: %d, error: %08x) Result (%08x) of sceNetAdhocctl - Opcode: %d, State: %d", waitID, error, (int)result, waitVal, adhocctlState);
|
||||
|
||||
// We are done with this request
|
||||
adhocctlRequests.erase(uid);
|
||||
|
@ -332,7 +332,7 @@ static void __AdhocctlState(u64 userdata, int cyclesLate) {
|
|||
|
||||
SceUID waitID = __KernelGetWaitID(threadID, WAITTYPE_NET, error);
|
||||
if (waitID == 0 || error != 0) {
|
||||
WARN_LOG(SCENET, "sceNetAdhocctl State WaitID(%i) on Thread(%i) already woken up? (error: %d)", uid, threadID, error);
|
||||
WARN_LOG(SCENET, "sceNetAdhocctl State WaitID(%i) on Thread(%i) already woken up? (error: %08x)", uid, threadID, error);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -348,7 +348,7 @@ static void __AdhocctlState(u64 userdata, int cyclesLate) {
|
|||
}
|
||||
|
||||
__KernelResumeThreadFromWait(threadID, result);
|
||||
DEBUG_LOG(SCENET, "Returning (WaitID: %d, error: %d) Result (%08x) of sceNetAdhocctl - Event: %d, State: %d", waitID, error, (int)result, event, adhocctlState);
|
||||
DEBUG_LOG(SCENET, "Returning (WaitID: %d, error: %08x) Result (%08x) of sceNetAdhocctl - Event: %d, State: %d", waitID, error, (int)result, event, adhocctlState);
|
||||
}
|
||||
|
||||
// Used to simulate blocking on metasocket when send OP code to AdhocServer
|
||||
|
@ -815,7 +815,7 @@ static void __AdhocSocketNotify(u64 userdata, int cyclesLate) {
|
|||
|
||||
SceUID waitID = __KernelGetWaitID(threadID, WAITTYPE_NET, error);
|
||||
if (waitID == 0 || error != 0) {
|
||||
WARN_LOG(SCENET, "sceNetAdhoc Socket WaitID(%i) on Thread(%i) already woken up? (error: %d)", uid, threadID, error);
|
||||
WARN_LOG(SCENET, "sceNetAdhoc Socket WaitID(%i) on Thread(%i) already woken up? (error: %08x)", uid, threadID, error);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -901,7 +901,7 @@ static void __AdhocSocketNotify(u64 userdata, int cyclesLate) {
|
|||
}
|
||||
|
||||
__KernelResumeThreadFromWait(threadID, result);
|
||||
DEBUG_LOG(SCENET, "Returning (ThreadId: %d, WaitID: %d, error: %d) Result (%08x) of sceNetAdhoc[%d] - SocketID: %d", threadID, waitID, error, (int)result, req.type, req.id);
|
||||
DEBUG_LOG(SCENET, "Returning (ThreadId: %d, WaitID: %d, error: %08x) Result (%08x) of sceNetAdhoc[%d] - SocketID: %d", threadID, waitID, error, (int)result, req.type, req.id);
|
||||
|
||||
// We are done with this socket
|
||||
adhocSocketRequests.erase(userdata);
|
||||
|
|
Loading…
Add table
Reference in a new issue