diff --git a/rpcs3/Emu/HDD/HDD.h b/rpcs3/Emu/HDD/HDD.h index c403df21f5..ba7c86e0ed 100644 --- a/rpcs3/Emu/HDD/HDD.h +++ b/rpcs3/Emu/HDD/HDD.h @@ -583,13 +583,12 @@ public: } u64 new_block = FindFreeBlock(); - - ConLog.Write("CREATION ENTRY AT 0x%llx", new_block); if(!new_block) { return false; } + ConLog.Write("CREATING ENTRY AT 0x%llx", new_block); WriteBlock(new_block, g_used_block); { @@ -739,7 +738,7 @@ public: return false; } - ConLog.Write("ENTRY FINDED AT 0x%llx", file_block); + ConLog.Write("ENTRY FOUND AT 0x%llx", file_block); m_file.Open(file_block); return vfsFileBase::Open(path, mode); @@ -769,7 +768,7 @@ public: if(entry.type == vfsHDD_Entry_Dir && name != "." && name != "..") { - ConLog.Warning("removing sub folder '%s'", name.wx_str()); + ConLog.Warning("Removing sub folder '%s'", name.wx_str()); RemoveBlocksDir(entry.data_block); } else if(entry.type == vfsHDD_Entry_File) diff --git a/rpcs3/Emu/SysCalls/Modules/cellAdec.cpp b/rpcs3/Emu/SysCalls/Modules/cellAdec.cpp index fec5d753be..9c7b4e8a59 100644 --- a/rpcs3/Emu/SysCalls/Modules/cellAdec.cpp +++ b/rpcs3/Emu/SysCalls/Modules/cellAdec.cpp @@ -30,7 +30,7 @@ next: { if (Emu.IsStopped()) { - ConLog.Warning("adecRead() aborted"); + ConLog.Warning("adecRawRead() aborted"); return 0; } Sleep(1); @@ -47,7 +47,7 @@ next: { if (!Memory.CopyToReal(buf, adec.reader.addr, adec.reader.size)) { - ConLog.Error("adecRead: data reading failed (reader.size=0x%x)", adec.reader.size); + ConLog.Error("adecRawRead: data reading failed (reader.size=0x%x)", adec.reader.size); Emu.Pause(); return 0; } @@ -68,7 +68,7 @@ next: } break; default: - ConLog.Error("adecRead(): sequence error (task %d)", adec.job.Peek().type); + ConLog.Error("adecRawRead(): sequence error (task %d)", adec.job.Peek().type); return -1; } @@ -85,7 +85,7 @@ next: } else if (!Memory.CopyToReal(buf, adec.reader.addr, buf_size)) { - ConLog.Error("adecRead: data reading failed (buf_size=0x%x)", buf_size); + ConLog.Error("adecRawRead: data reading failed (buf_size=0x%x)", buf_size); Emu.Pause(); return 0; } diff --git a/rpcs3/Emu/SysCalls/Modules/cellGcmSys.cpp b/rpcs3/Emu/SysCalls/Modules/cellGcmSys.cpp index 877075b86f..d90e4a3705 100644 --- a/rpcs3/Emu/SysCalls/Modules/cellGcmSys.cpp +++ b/rpcs3/Emu/SysCalls/Modules/cellGcmSys.cpp @@ -701,7 +701,7 @@ int32_t cellGcmMapLocalMemory(u64 address, u64 size) } else { - printf("RSX local memory already mapped"); + cellGcmSys.Error("RSX local memory already mapped"); return CELL_GCM_ERROR_FAILURE; } diff --git a/rpcs3/Emu/SysCalls/Modules/sys_fs.cpp b/rpcs3/Emu/SysCalls/Modules/sys_fs.cpp index a76a583acc..f37f2f1723 100644 --- a/rpcs3/Emu/SysCalls/Modules/sys_fs.cpp +++ b/rpcs3/Emu/SysCalls/Modules/sys_fs.cpp @@ -50,9 +50,10 @@ int sdata_unpack(wxString packed_file, wxString unpacked_file) char buffer [10200]; packed_stream->Read(buffer, 256); - if (re32(*(u32*)&buffer[0]) != 0x4E504400) // "NPD\x00" + u32 format = re32(*(u32*)&buffer[0]); + if (format != 0x4E504400) // "NPD\x00" { - printf("ERROR: illegal format."); + sys_fs.Error("Illegal format. Expected 0x4E504400, but got 0x%08x", format); return CELL_EFSSPECIFIC; }