mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
Improve lwmutex_lock error logging
This commit is contained in:
parent
19d01835d3
commit
eb2eb9ccf5
2 changed files with 13 additions and 3 deletions
|
@ -502,7 +502,7 @@ error_code _sys_lwcond_queue_wait(ppu_thread& ppu, u32 lwcond_id, u32 lwmutex_id
|
||||||
|
|
||||||
if (!cond || !mutex)
|
if (!cond || !mutex)
|
||||||
{
|
{
|
||||||
return CELL_ESRCH;
|
return { CELL_ESRCH, fmt::format("lwmutex_id: 0x%x, lwcond_id: 0x%x", lwmutex_id, lwcond_id) };
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ppu.state & cpu_flag::again)
|
if (ppu.state & cpu_flag::again)
|
||||||
|
|
|
@ -183,7 +183,12 @@ error_code _sys_lwmutex_lock(ppu_thread& ppu, u32 lwmutex_id, u64 timeout)
|
||||||
|
|
||||||
if (!mutex)
|
if (!mutex)
|
||||||
{
|
{
|
||||||
return CELL_ESRCH;
|
if (lwmutex_id >> 24 == lv2_lwmutex::id_base >> 24)
|
||||||
|
{
|
||||||
|
return { CELL_ESRCH, lwmutex_id };
|
||||||
|
}
|
||||||
|
|
||||||
|
return { CELL_ESRCH, "Invalid ID" };
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mutex.ret)
|
if (mutex.ret)
|
||||||
|
@ -313,7 +318,12 @@ error_code _sys_lwmutex_trylock(ppu_thread& ppu, u32 lwmutex_id)
|
||||||
|
|
||||||
if (!mutex)
|
if (!mutex)
|
||||||
{
|
{
|
||||||
return CELL_ESRCH;
|
if (lwmutex_id >> 24 == lv2_lwmutex::id_base >> 24)
|
||||||
|
{
|
||||||
|
return { CELL_ESRCH, lwmutex_id };
|
||||||
|
}
|
||||||
|
|
||||||
|
return { CELL_ESRCH, "Invalid ID" };
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mutex.ret)
|
if (!mutex.ret)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue