mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
Fix log format misuse
Harden log channel methods against non-constant string.
This commit is contained in:
parent
a29d4150df
commit
8f604ddded
4 changed files with 8 additions and 8 deletions
|
@ -72,8 +72,8 @@ namespace logs
|
|||
|
||||
#define GEN_LOG_METHOD(_sev)\
|
||||
const message msg_##_sev{this, level::_sev};\
|
||||
template <typename... Args>\
|
||||
void _sev(const char* fmt, const Args&... args)\
|
||||
template <std::size_t N, typename... Args>\
|
||||
void _sev(const char(&fmt)[N], const Args&... args)\
|
||||
{\
|
||||
if (UNLIKELY(level::_sev <= enabled))\
|
||||
{\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue