mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-02 22:30:39 +00:00
Update CubebBackend.cpp
This commit is contained in:
parent
cbc559484d
commit
c8de10e5b6
1 changed files with 4 additions and 4 deletions
|
@ -574,12 +574,12 @@ void CubebBackend::device_collection_changed_cb(cubeb* context, void* user_ptr)
|
||||||
|
|
||||||
void CubebBackend::log_cb(const char* fmt, ...)
|
void CubebBackend::log_cb(const char* fmt, ...)
|
||||||
{
|
{
|
||||||
char buf[256] = "Cubeb log msg: ";
|
char buf[256]{};
|
||||||
static constexpr size_t prefix_size = sizeof("Cubeb log msg: ") - 1;
|
|
||||||
|
|
||||||
va_list va;
|
va_list va;
|
||||||
va_start(va, fmt);
|
va_start(va, fmt);
|
||||||
vsnprintf(buf + prefix_size, sizeof(buf) - prefix_size, fmt, va);
|
vsnprintf(buf, sizeof(buf) - 1, fmt, va);
|
||||||
va_end(va);
|
va_end(va);
|
||||||
Cubeb.notice(buf);
|
|
||||||
|
Cubeb.notice("Cubeb log: %s", buf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue