AudioCommon: Migrate logging over to fmt

printf specifiers, begone!
This commit is contained in:
Lioncash
2020-10-21 13:32:25 -04:00
parent 09e87b79f1
commit 22a79289d3
9 changed files with 69 additions and 70 deletions

View File

@ -38,7 +38,7 @@ static void DestroyContext(cubeb* ctx)
cubeb_destroy(ctx);
if (cubeb_set_log_callback(CUBEB_LOG_DISABLED, nullptr) != CUBEB_OK)
{
ERROR_LOG(AUDIO, "Error removing cubeb log callback");
ERROR_LOG_FMT(AUDIO, "Error removing cubeb log callback");
}
}
@ -59,16 +59,16 @@ std::shared_ptr<cubeb> CubebUtils::GetContext()
}
if (cubeb_set_log_callback(CUBEB_LOG_NORMAL, LogCallback) != CUBEB_OK)
{
ERROR_LOG(AUDIO, "Error setting cubeb log callback");
ERROR_LOG_FMT(AUDIO, "Error setting cubeb log callback");
}
cubeb* ctx;
if (cubeb_init(&ctx, "Dolphin", nullptr) != CUBEB_OK)
{
ERROR_LOG(AUDIO, "Error initializing cubeb library");
ERROR_LOG_FMT(AUDIO, "Error initializing cubeb library");
return nullptr;
}
INFO_LOG(AUDIO, "Cubeb initialized using %s backend", cubeb_get_backend_id(ctx));
INFO_LOG_FMT(AUDIO, "Cubeb initialized using {} backend", cubeb_get_backend_id(ctx));
weak = shared = {ctx, DestroyContext};
return shared;