diff --git a/rpcs3/Emu/Cell/lv2/sys_ppu_thread.cpp b/rpcs3/Emu/Cell/lv2/sys_ppu_thread.cpp index 63f729c453..ffd6fe4ffc 100644 --- a/rpcs3/Emu/Cell/lv2/sys_ppu_thread.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_ppu_thread.cpp @@ -289,7 +289,7 @@ error_code sys_ppu_thread_restart(u32 thread_id) error_code _sys_ppu_thread_create(vm::ptr thread_id, vm::ptr param, u64 arg, u64 unk, s32 prio, u32 _stacksz, u64 flags, vm::cptr threadname) { - sys_ppu_thread.warning("_sys_ppu_thread_create(thread_id=*0x%x, param=*0x%x, arg=0x%llx, unk=0x%llx, prio=%d, stacksize=0x%x, flags=0x%llx, threadname=%s)", + sys_ppu_thread.warning("_sys_ppu_thread_create(thread_id=*0x%x, param=*0x%x, arg=0x%llx, unk=0x%llx, prio=%d, stacksize=0x%x, flags=0x%llx, threadname=*0x%x)", thread_id, param, arg, unk, prio, _stacksz, flags, threadname); // thread_id is checked for null in stub -> CELL_ENOMEM @@ -320,11 +320,12 @@ error_code _sys_ppu_thread_create(vm::ptr thread_id, vm::ptr>([&]() { const u32 tid = idm::last_id(); - std::string ppu_name; std::string full_name = fmt::format("PPU[0x%x] Thread", tid); if (threadname) @@ -332,7 +333,11 @@ error_code _sys_ppu_thread_create(vm::ptr thread_id, vm::ptr thread_id, vm::ptr name) { - sys_ppu_thread.warning("sys_ppu_thread_rename(thread_id=0x%x, name=%s)", thread_id, name); + sys_ppu_thread.warning("sys_ppu_thread_rename(thread_id=0x%x, name=*0x%x)", thread_id, name); const auto thread = idm::get>(thread_id); @@ -428,7 +434,8 @@ error_code sys_ppu_thread_rename(u32 thread_id, vm::cptr name) const auto pname = name.get_ptr(); // thread_ctrl name is not changed (TODO) - thread->ppu_name.assign(pname, std::find(pname, pname + max_size, '\0')); + const std::string res = thread->ppu_name.assign(pname, std::find(pname, pname + max_size, '\0')); + sys_ppu_thread.warning(u8"sys_ppu_thread_rename(): Thread renamed to ā€œ%sā€", res); return CELL_OK; }