mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
Optimize logging via logs::channel
Use constant-initialized severity subobjects instead of temporaries
This commit is contained in:
parent
b94e98aed5
commit
ed8aa774bb
3 changed files with 15 additions and 19 deletions
|
@ -1465,7 +1465,6 @@ s32 error_code::error_report(const fmt_type_info* sup, u64 arg, const fmt_type_i
|
|||
}
|
||||
|
||||
logs::channel* channel = &logs::GENERAL;
|
||||
logs::level level = logs::level::error;
|
||||
const char* func = "Unknown function";
|
||||
|
||||
if (auto thread = get_current_cpu_thread())
|
||||
|
@ -1490,7 +1489,7 @@ s32 error_code::error_report(const fmt_type_info* sup, u64 arg, const fmt_type_i
|
|||
|
||||
if (stat <= 3)
|
||||
{
|
||||
channel->format(level, "%s [%u]", g_tls_error_str, stat);
|
||||
channel->error("%s [%u]", g_tls_error_str, stat);
|
||||
}
|
||||
|
||||
return static_cast<s32>(arg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue