mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
Log: ensure fmt
This commit is contained in:
parent
1d40c06c19
commit
e52386ccfb
2 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,8 @@ C-style format parser. Appends formatted string to `out`, returns number of char
|
||||||
template<typename Dst, typename Char, typename Src>
|
template<typename Dst, typename Char, typename Src>
|
||||||
usz cfmt_append(Dst& out, const Char* fmt, Src&& src)
|
usz cfmt_append(Dst& out, const Char* fmt, Src&& src)
|
||||||
{
|
{
|
||||||
|
ensure(fmt);
|
||||||
|
|
||||||
const usz start_pos = out.size();
|
const usz start_pos = out.size();
|
||||||
|
|
||||||
struct cfmt_context
|
struct cfmt_context
|
||||||
|
|
|
@ -1989,6 +1989,8 @@ s32 error_code::error_report(s32 result, const char* fmt, const fmt_type_info* s
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ensure(fmt);
|
||||||
|
|
||||||
logs::channel* channel = &sys_log;
|
logs::channel* channel = &sys_log;
|
||||||
const char* func = "Unknown function";
|
const char* func = "Unknown function";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue