From c792961000a6bc8fa33dabdf42d07a25e44e8662 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 28 Nov 2019 04:19:24 -0500 Subject: Common: Unify logging namespace with Common Previously the logging was a in a little bit of a disarray. Some things were in namespaces, and other things were not. Given this code will feature a bit of restructuring during the transition over to fmt, this is a good time to unify it under a single namespace and also remove functions and types from the global namespace. Now, all functions and types are under the Common::Log namespace. The only outliers being, of course, the preprocessor macros. --- Source/Core/AudioCommon/CubebUtils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/AudioCommon/CubebUtils.cpp') diff --git a/Source/Core/AudioCommon/CubebUtils.cpp b/Source/Core/AudioCommon/CubebUtils.cpp index 5eaaaf62cd..b4af87115b 100644 --- a/Source/Core/AudioCommon/CubebUtils.cpp +++ b/Source/Core/AudioCommon/CubebUtils.cpp @@ -18,7 +18,7 @@ static ptrdiff_t s_path_cutoff_point = 0; static void LogCallback(const char* format, ...) { - if (!LogManager::GetInstance()) + if (!Common::Log::LogManager::GetInstance()) return; va_list args; @@ -28,8 +28,8 @@ static void LogCallback(const char* format, ...) int lineno = va_arg(args, int); std::string adapted_format(StripSpaces(format + strlen("%s:%d:"))); - LogManager::GetInstance()->LogWithFullPath(LogTypes::LNOTICE, LogTypes::AUDIO, filename, lineno, - adapted_format.c_str(), args); + Common::Log::LogManager::GetInstance()->LogWithFullPath( + Common::Log::LNOTICE, Common::Log::AUDIO, filename, lineno, adapted_format.c_str(), args); va_end(args); } -- cgit v1.2.3