diff options
| author | Léo Lam <leo@leolam.fr> | 2020-10-22 01:03:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-22 01:03:16 +0200 |
| commit | 96ce3e5f4998ec43b05c9a55a94b39f69f1ef521 (patch) | |
| tree | 4b549154606d8fd2f404551ea8bb31c098e5c566 /Source/Core/AudioCommon/CubebUtils.cpp | |
| parent | 3176f4d790a96f1aa2ebbe1a0f9aa1061ec60c21 (diff) | |
| parent | 22a79289d37bb48fcc5a7ff7944b02052340df0e (diff) | |
Merge pull request #9176 from lioncash/audiofmt
AudioCommon: Migrate logging over to fmt
Diffstat (limited to 'Source/Core/AudioCommon/CubebUtils.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/CubebUtils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/AudioCommon/CubebUtils.cpp b/Source/Core/AudioCommon/CubebUtils.cpp index 2088956e4b..eed8bd53eb 100644 --- a/Source/Core/AudioCommon/CubebUtils.cpp +++ b/Source/Core/AudioCommon/CubebUtils.cpp @@ -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; |
