mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
Logging system rework
* use one central unified log with channels/priorities ad-hoc listener registration and de-registration * disable buffering by default * add multi-threaded ringbuffer implementation * use buffered listener for the gui (using the ringbuffer)
This commit is contained in:
parent
394b698e92
commit
21da317453
165 changed files with 1731 additions and 1519 deletions
|
|
@ -24,14 +24,14 @@ struct SceHeader
|
|||
|
||||
void Show()
|
||||
{
|
||||
ConLog.Write("Magic: %08x", se_magic);
|
||||
ConLog.Write("Class: %s", "SELF");
|
||||
ConLog.Write("hver: 0x%08x", se_hver);
|
||||
ConLog.Write("flags: 0x%04x", se_flags);
|
||||
ConLog.Write("type: 0x%04x", se_type);
|
||||
ConLog.Write("meta: 0x%08x", se_meta);
|
||||
ConLog.Write("hsize: 0x%llx", se_hsize);
|
||||
ConLog.Write("esize: 0x%llx", se_esize);
|
||||
LOGF_NOTICE(LOADER, "Magic: %08x", se_magic);
|
||||
LOGF_NOTICE(LOADER, "Class: %s", "SELF");
|
||||
LOGF_NOTICE(LOADER, "hver: 0x%08x", se_hver);
|
||||
LOGF_NOTICE(LOADER, "flags: 0x%04x", se_flags);
|
||||
LOGF_NOTICE(LOADER, "type: 0x%04x", se_type);
|
||||
LOGF_NOTICE(LOADER, "meta: 0x%08x", se_meta);
|
||||
LOGF_NOTICE(LOADER, "hsize: 0x%llx", se_hsize);
|
||||
LOGF_NOTICE(LOADER, "esize: 0x%llx", se_esize);
|
||||
}
|
||||
|
||||
bool CheckMagic() const { return se_magic == 0x53434500; }
|
||||
|
|
@ -66,15 +66,15 @@ struct SelfHeader
|
|||
|
||||
void Show()
|
||||
{
|
||||
ConLog.Write("header type: 0x%llx", se_htype);
|
||||
ConLog.Write("app info offset: 0x%llx", se_appinfooff);
|
||||
ConLog.Write("elf offset: 0x%llx", se_elfoff);
|
||||
ConLog.Write("program header offset: 0x%llx", se_phdroff);
|
||||
ConLog.Write("section header offset: 0x%llx", se_shdroff);
|
||||
ConLog.Write("section info offset: 0x%llx", se_secinfoff);
|
||||
ConLog.Write("sce version offset: 0x%llx", se_sceveroff);
|
||||
ConLog.Write("control info offset: 0x%llx", se_controloff);
|
||||
ConLog.Write("control info size: 0x%llx", se_controlsize);
|
||||
LOGF_NOTICE(LOADER, "header type: 0x%llx", se_htype);
|
||||
LOGF_NOTICE(LOADER, "app info offset: 0x%llx", se_appinfooff);
|
||||
LOGF_NOTICE(LOADER, "elf offset: 0x%llx", se_elfoff);
|
||||
LOGF_NOTICE(LOADER, "program header offset: 0x%llx", se_phdroff);
|
||||
LOGF_NOTICE(LOADER, "section header offset: 0x%llx", se_shdroff);
|
||||
LOGF_NOTICE(LOADER, "section info offset: 0x%llx", se_secinfoff);
|
||||
LOGF_NOTICE(LOADER, "sce version offset: 0x%llx", se_sceveroff);
|
||||
LOGF_NOTICE(LOADER, "control info offset: 0x%llx", se_controloff);
|
||||
LOGF_NOTICE(LOADER, "control info size: 0x%llx", se_controlsize);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue