diff --git a/Common/ArmEmitter.cpp b/Common/ArmEmitter.cpp index d289bdfb99..b3878fd443 100644 --- a/Common/ArmEmitter.cpp +++ b/Common/ArmEmitter.cpp @@ -17,9 +17,6 @@ #include "ppsspp_config.h" -#include "base/logging.h" - -#include #include #include #include @@ -31,9 +28,10 @@ #include #endif -#include "MemoryUtil.h" -#include "ArmEmitter.h" -#include "CPUDetect.h" +#include "Common/Log.h" +#include "Common/MemoryUtil.h" +#include "Common/ArmEmitter.h" +#include "Common/CPUDetect.h" #ifdef _WIN32 #include "CommonWindows.h" @@ -1780,7 +1778,7 @@ void ARMXEmitter::VMOV(ARMReg Dest, ARMReg Src) _assert_msg_(SrcSize == DestSize, "VMOV doesn't support moving different register sizes"); if (SrcSize != DestSize) { - ELOG("SrcSize: %i (%s) DestDize: %i (%s)", SrcSize, ARMRegAsString(Src), DestSize, ARMRegAsString(Dest)); + ERROR_LOG(JIT, "SrcSize: %i (%s) DestDize: %i (%s)", SrcSize, ARMRegAsString(Src), DestSize, ARMRegAsString(Dest)); } Dest = SubBase(Dest); diff --git a/Common/CPUDetect.cpp b/Common/CPUDetect.cpp index ac5cd2e640..ce3ad48a81 100644 --- a/Common/CPUDetect.cpp +++ b/Common/CPUDetect.cpp @@ -28,14 +28,14 @@ #include #include -#include "base/logging.h" + #include "base/basictypes.h" #include "file/file_util.h" -#include "Common.h" -#include "CPUDetect.h" -#include "FileUtil.h" -#include "StringUtils.h" +#include "Common/Common.h" +#include "Common/CPUDetect.h" +#include "Common/FileUtil.h" +#include "Common/StringUtils.h" #if defined(_WIN32) && !defined(__MINGW32__) #define WIN32_LEAN_AND_MEAN diff --git a/Common/KeyMap.cpp b/Common/KeyMap.cpp index 1652b51da8..19b93711df 100644 --- a/Common/KeyMap.cpp +++ b/Common/KeyMap.cpp @@ -24,14 +24,14 @@ #include "CommonWindows.h" #endif -#include "base/logging.h" #include "base/stringutil.h" #include "base/NativeApp.h" #include "file/ini_file.h" #include "input/input_state.h" #include "ppsspp_config.h" -#include "KeyMap.h" +#include "Common/Log.h" +#include "Common/KeyMap.h" #include "Core/HLE/sceUtility.h" #include "Core/Config.h" @@ -898,10 +898,10 @@ void RestoreDefault() { } else if (IsXperiaPlay(name)) { SetDefaultKeyMap(DEFAULT_MAPPING_XPERIA_PLAY, true); } else if (IsMOQII7S(name)) { - ILOG("MOQI pad map"); + INFO_LOG(SYSTEM, "MOQI pad map"); SetDefaultKeyMap(DEFAULT_MAPPING_MOQI_I7S, true); } else { - ILOG("Default pad map"); + INFO_LOG(SYSTEM, "Default pad map"); SetDefaultKeyMap(DEFAULT_MAPPING_PAD, true); } #else @@ -992,7 +992,7 @@ void NotifyPadConnected(const std::string &name) { } void AutoConfForPad(const std::string &name) { - ILOG("Autoconfiguring pad for '%s'", name.c_str()); + INFO_LOG(SYSTEM, "Autoconfiguring pad for '%s'", name.c_str()); if (name == "Xbox 360 Pad") { SetDefaultKeyMap(DEFAULT_MAPPING_X360, true); } else { diff --git a/Common/MachineContext.h b/Common/MachineContext.h index dabc854003..0cac3d97ce 100644 --- a/Common/MachineContext.h +++ b/Common/MachineContext.h @@ -14,7 +14,9 @@ #include typedef CONTEXT SContext; -#if PPSSPP_ARCH(AMD64) +#if defined(__LIBRETRO__) + +#elif PPSSPP_ARCH(AMD64) #define MACHINE_CONTEXT_SUPPORTED diff --git a/Common/MemArenaAndroid.cpp b/Common/MemArenaAndroid.cpp index 67e1861e5a..b43a0815b2 100644 --- a/Common/MemArenaAndroid.cpp +++ b/Common/MemArenaAndroid.cpp @@ -19,12 +19,6 @@ #ifdef __ANDROID__ -#include "base/logging.h" -#include "base/NativeApp.h" -#include "MemoryUtil.h" -#include "MemArena.h" -#include "StringUtils.h" - #include #include #include @@ -33,6 +27,12 @@ #include #include +#include "base/NativeApp.h" +#include "Common/Log.h" +#include "Common/MemoryUtil.h" +#include "Common/MemArena.h" +#include "Common/StringUtils.h" + // Hopefully this ABI will never change... #define ASHMEM_DEVICE "/dev/ashmem" @@ -141,14 +141,14 @@ u8* MemArena::Find4GBBase() { const uint64_t EIGHT_GIGS = 0x200000000ULL; void *base = mmap(0, EIGHT_GIGS, PROT_READ | PROT_WRITE, MAP_ANON | MAP_SHARED, -1, 0); if (base) { - ILOG("base: %p", base); + INFO_LOG(SYSTEM, "base: %p", base); uint64_t aligned_base = ((uint64_t)base + 0xFFFFFFFF) & ~0xFFFFFFFFULL; - ILOG("aligned_base: %p", (void *)aligned_base); + INFO_LOG(SYSTEM, "aligned_base: %p", (void *)aligned_base); munmap(base, EIGHT_GIGS); return reinterpret_cast(aligned_base); } else { u8 *hardcoded_ptr = reinterpret_cast(0x2300000000ULL); - ILOG("Failed to anonymously map 8GB. Fall back to the hardcoded pointer %p.", hardcoded_ptr); + INFO_LOG(SYSTEM, "Failed to anonymously map 8GB. Fall back to the hardcoded pointer %p.", hardcoded_ptr); // Just grab some random 4GB... // This has been known to fail lately though, see issue #12249. return hardcoded_ptr; diff --git a/Common/MemoryUtil.cpp b/Common/MemoryUtil.cpp index 9a078ea728..c834444563 100644 --- a/Common/MemoryUtil.cpp +++ b/Common/MemoryUtil.cpp @@ -17,7 +17,7 @@ #include "ppsspp_config.h" -#include "base/logging.h" +#include #include "Common/Common.h" #include "Common/Log.h" diff --git a/Common/MipsEmitter.cpp b/Common/MipsEmitter.cpp index bd4e878959..5d6288be3e 100644 --- a/Common/MipsEmitter.cpp +++ b/Common/MipsEmitter.cpp @@ -15,18 +15,16 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. -#include "base/logging.h" - -#include #include #include #include #include #include -#include "MemoryUtil.h" -#include "MipsEmitter.h" -#include "CPUDetect.h" +#include "Common/Log.h" +#include "Common/MemoryUtil.h" +#include "Common/MipsEmitter.h" +#include "Common/CPUDetect.h" namespace MIPSGen { void MIPSEmitter::SetCodePtr(u8 *ptr) { diff --git a/Common/MsgHandler.cpp b/Common/MsgHandler.cpp index f2ec4dcadd..428790d0df 100644 --- a/Common/MsgHandler.cpp +++ b/Common/MsgHandler.cpp @@ -20,8 +20,8 @@ #include "ppsspp_config.h" #include "Common.h" +#include "Common/Log.h" #include "StringUtils.h" -#include "base/logging.h" #include "util/text/utf8.h" bool MsgHandler(const char *caption, const char *text, const char *file, int line, bool yes_no, int Style); @@ -69,7 +69,7 @@ bool MsgHandler(const char* caption, const char* text, const char *file, int lin return false; #else // Will use android-log if available, printf if not. - ELOG("(%s:%d) %s", file, line, text); + ERROR_LOG(SYSTEM, "(%s:%d) %s", file, line, text); return false; #endif } diff --git a/Common/Vulkan/VulkanDebug.cpp b/Common/Vulkan/VulkanDebug.cpp index c60898deef..687070640f 100644 --- a/Common/Vulkan/VulkanDebug.cpp +++ b/Common/Vulkan/VulkanDebug.cpp @@ -19,7 +19,7 @@ #include #include -#include "base/logging.h" +#include "Common/Log.h" #include "Common/Vulkan/VulkanContext.h" #include "Common/Vulkan/VulkanDebug.h" @@ -79,9 +79,9 @@ VKAPI_ATTR VkBool32 VKAPI_CALL VulkanDebugUtilsCallback( #else // TODO: Improve. if (messageSeverity & VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT) { - ELOG("VKDEBUG: %s", msg.c_str()); + ERROR_LOG(G3D, "VKDEBUG: %s", msg.c_str()); } else { - WLOG("VKDEBUG: %s", msg.c_str()); + WARN_LOG(G3D, "VKDEBUG: %s", msg.c_str()); } #endif diff --git a/Common/Vulkan/VulkanLoader.cpp b/Common/Vulkan/VulkanLoader.cpp index 59b3fb5bd3..4fff74c28d 100644 --- a/Common/Vulkan/VulkanLoader.cpp +++ b/Common/Vulkan/VulkanLoader.cpp @@ -18,8 +18,9 @@ #include "Common/Vulkan/VulkanLoader.h" #include #include +#include -#include "base/logging.h" +#include "Common/Log.h" #include "base/basictypes.h" #include "base/NativeApp.h" @@ -224,9 +225,9 @@ const char *VulkanResultToString(VkResult res); bool g_vulkanAvailabilityChecked = false; bool g_vulkanMayBeAvailable = false; -#define LOAD_INSTANCE_FUNC(instance, x) x = (PFN_ ## x)vkGetInstanceProcAddr(instance, #x); if (!x) {ILOG("Missing (instance): %s", #x);} -#define LOAD_DEVICE_FUNC(instance, x) x = (PFN_ ## x)vkGetDeviceProcAddr(instance, #x); if (!x) {ILOG("Missing (device): %s", #x);} -#define LOAD_GLOBAL_FUNC(x) x = (PFN_ ## x)dlsym(vulkanLibrary, #x); if (!x) {ILOG("Missing (global): %s", #x);} +#define LOAD_INSTANCE_FUNC(instance, x) x = (PFN_ ## x)vkGetInstanceProcAddr(instance, #x); if (!x) {INFO_LOG(G3D, "Missing (instance): %s", #x);} +#define LOAD_DEVICE_FUNC(instance, x) x = (PFN_ ## x)vkGetDeviceProcAddr(instance, #x); if (!x) {INFO_LOG(G3D, "Missing (device): %s", #x);} +#define LOAD_GLOBAL_FUNC(x) x = (PFN_ ## x)dlsym(vulkanLibrary, #x); if (!x) {INFO_LOG(G3D,"Missing (global): %s", #x);} #define LOAD_GLOBAL_FUNC_LOCAL(lib, x) (PFN_ ## x)dlsym(lib, #x); @@ -259,20 +260,20 @@ bool VulkanMayBeAvailable() { std::string name = System_GetProperty(SYSPROP_NAME); for (const char *blacklisted_name : device_name_blacklist) { if (!strcmp(name.c_str(), blacklisted_name)) { - ILOG("VulkanMayBeAvailable: Device blacklisted ('%s')", name.c_str()); + INFO_LOG(G3D, "VulkanMayBeAvailable: Device blacklisted ('%s')", name.c_str()); g_vulkanAvailabilityChecked = true; g_vulkanMayBeAvailable = false; return false; } } - ILOG("VulkanMayBeAvailable: Device allowed ('%s')", name.c_str()); + INFO_LOG(G3D, "VulkanMayBeAvailable: Device allowed ('%s')", name.c_str()); #ifndef _WIN32 void *lib = nullptr; for (int i = 0; i < ARRAY_SIZE(so_names); i++) { lib = dlopen(so_names[i], RTLD_NOW | RTLD_LOCAL); if (lib) { - ILOG("VulkanMayBeAvailable: Library loaded ('%s')", so_names[i]); + INFO_LOG(G3D, "VulkanMayBeAvailable: Library loaded ('%s')", so_names[i]); break; } } @@ -281,7 +282,7 @@ bool VulkanMayBeAvailable() { HINSTANCE lib = LoadLibrary(L"vulkan-1.dll"); #endif if (!lib) { - ILOG("Vulkan loader: Library not available"); + INFO_LOG(G3D, "Vulkan loader: Library not available"); g_vulkanAvailabilityChecked = true; g_vulkanMayBeAvailable = false; return false; @@ -321,32 +322,32 @@ bool VulkanMayBeAvailable() { #endif if (!localEnumerateInstanceExtensionProperties || !localCreateInstance || !localEnumerate || !localDestroyInstance || !localGetPhysicalDeviceProperties) { - WLOG("VulkanMayBeAvailable: Function pointer missing, bailing"); + WARN_LOG(G3D, "VulkanMayBeAvailable: Function pointer missing, bailing"); goto bail; } - ILOG("VulkanMayBeAvailable: Enumerating instance extensions"); + INFO_LOG(G3D, "VulkanMayBeAvailable: Enumerating instance extensions"); res = localEnumerateInstanceExtensionProperties(nullptr, &instanceExtCount, nullptr); // Maximum paranoia. if (res != VK_SUCCESS) { - ELOG("Enumerating VK extensions failed (%s)", VulkanResultToString(res)); + ERROR_LOG(G3D, "Enumerating VK extensions failed (%s)", VulkanResultToString(res)); goto bail; } if (instanceExtCount == 0) { - ELOG("No VK instance extensions - won't be able to present."); + ERROR_LOG(G3D, "No VK instance extensions - won't be able to present."); goto bail; } - ILOG("VulkanMayBeAvailable: Instance extension count: %d", instanceExtCount); + INFO_LOG(G3D, "VulkanMayBeAvailable: Instance extension count: %d", instanceExtCount); instanceExts.resize(instanceExtCount); res = localEnumerateInstanceExtensionProperties(nullptr, &instanceExtCount, instanceExts.data()); if (res != VK_SUCCESS) { - ELOG("Enumerating VK extensions failed (%s)", VulkanResultToString(res)); + ERROR_LOG(G3D, "Enumerating VK extensions failed (%s)", VulkanResultToString(res)); goto bail; } for (auto iter : instanceExts) { - ILOG("VulkanMaybeAvailable: Instance extension found: %s (%08x)", iter.extensionName, iter.specVersion); + INFO_LOG(G3D, "VulkanMaybeAvailable: Instance extension found: %s (%08x)", iter.extensionName, iter.specVersion); if (platformSurfaceExtension && !strcmp(iter.extensionName, platformSurfaceExtension)) { - ILOG("VulkanMayBeAvailable: Found platform surface extension '%s'", platformSurfaceExtension); + INFO_LOG(G3D, "VulkanMayBeAvailable: Found platform surface extension '%s'", platformSurfaceExtension); instanceExtensions[ci.enabledExtensionCount++] = platformSurfaceExtension; platformSurfaceExtensionFound = true; break; @@ -357,19 +358,19 @@ bool VulkanMayBeAvailable() { } if (platformSurfaceExtension) { if (!platformSurfaceExtensionFound || !surfaceExtensionFound) { - ELOG("Platform surface extension not found"); + ERROR_LOG(G3D, "Platform surface extension not found"); goto bail; } } else { if (!surfaceExtensionFound) { - ELOG("Surface extension not found"); + ERROR_LOG(G3D, "Surface extension not found"); goto bail; } } // This can't happen unless the driver is double-reporting a surface extension. if (ci.enabledExtensionCount > 2) { - ELOG("Unexpected number of enabled instance extensions"); + ERROR_LOG(G3D, "Unexpected number of enabled instance extensions"); goto bail; } @@ -382,27 +383,27 @@ bool VulkanMayBeAvailable() { info.pEngineName = "VulkanCheckerEngine"; ci.pApplicationInfo = &info; ci.flags = 0; - ILOG("VulkanMayBeAvailable: Calling vkCreateInstance"); + INFO_LOG(G3D, "VulkanMayBeAvailable: Calling vkCreateInstance"); res = localCreateInstance(&ci, nullptr, &instance); if (res != VK_SUCCESS) { instance = nullptr; - ELOG("VulkanMayBeAvailable: Failed to create vulkan instance (%s)", VulkanResultToString(res)); + ERROR_LOG(G3D, "VulkanMayBeAvailable: Failed to create vulkan instance (%s)", VulkanResultToString(res)); goto bail; } - ILOG("VulkanMayBeAvailable: Vulkan test instance created successfully."); + INFO_LOG(G3D, "VulkanMayBeAvailable: Vulkan test instance created successfully."); res = localEnumerate(instance, &physicalDeviceCount, nullptr); if (res != VK_SUCCESS) { - ELOG("VulkanMayBeAvailable: Failed to count physical devices (%s)", VulkanResultToString(res)); + ERROR_LOG(G3D, "VulkanMayBeAvailable: Failed to count physical devices (%s)", VulkanResultToString(res)); goto bail; } if (physicalDeviceCount == 0) { - ELOG("VulkanMayBeAvailable: No physical Vulkan devices (count = 0)."); + ERROR_LOG(G3D, "VulkanMayBeAvailable: No physical Vulkan devices (count = 0)."); goto bail; } devices.resize(physicalDeviceCount); res = localEnumerate(instance, &physicalDeviceCount, devices.data()); if (res != VK_SUCCESS) { - ELOG("VulkanMayBeAvailable: Failed to enumerate physical devices (%s)", VulkanResultToString(res)); + ERROR_LOG(G3D, "VulkanMayBeAvailable: Failed to enumerate physical devices (%s)", VulkanResultToString(res)); goto bail; } anyGood = false; @@ -416,24 +417,24 @@ bool VulkanMayBeAvailable() { anyGood = true; break; default: - ILOG("VulkanMayBeAvailable: Ineligible device found and ignored: '%s'", props.deviceName); + INFO_LOG(G3D, "VulkanMayBeAvailable: Ineligible device found and ignored: '%s'", props.deviceName); break; } // TODO: Should also check queuefamilyproperties for a GRAPHICS queue family? Oh well. } if (!anyGood) { - WLOG("VulkanMayBeAvailable: Found Vulkan API, but no good Vulkan device!"); + WARN_LOG(G3D, "VulkanMayBeAvailable: Found Vulkan API, but no good Vulkan device!"); g_vulkanMayBeAvailable = false; } else { - ILOG("VulkanMayBeAvailable: Found working Vulkan API!"); + INFO_LOG(G3D, "VulkanMayBeAvailable: Found working Vulkan API!"); g_vulkanMayBeAvailable = true; } bail: g_vulkanAvailabilityChecked = true; if (instance) { - ILOG("VulkanMayBeAvailable: Destroying instance"); + INFO_LOG(G3D, "VulkanMayBeAvailable: Destroying instance"); localDestroyInstance(instance, nullptr); } if (lib) { @@ -443,7 +444,7 @@ bail: FreeLibrary(lib); #endif } else { - ELOG("Vulkan with working device not detected."); + ERROR_LOG(G3D, "Vulkan with working device not detected."); } return g_vulkanMayBeAvailable; } @@ -454,7 +455,7 @@ bool VulkanLoad() { for (int i = 0; i < ARRAY_SIZE(so_names); i++) { vulkanLibrary = dlopen(so_names[i], RTLD_NOW | RTLD_LOCAL); if (vulkanLibrary) { - ILOG("VulkanLoad: Found library '%s'", so_names[i]); + INFO_LOG(G3D, "VulkanLoad: Found library '%s'", so_names[i]); break; } } @@ -475,10 +476,10 @@ bool VulkanLoad() { LOAD_GLOBAL_FUNC(vkEnumerateInstanceLayerProperties); if (vkCreateInstance && vkGetInstanceProcAddr && vkGetDeviceProcAddr && vkEnumerateInstanceExtensionProperties && vkEnumerateInstanceLayerProperties) { - WLOG("VulkanLoad: Base functions loaded."); + WARN_LOG(G3D, "VulkanLoad: Base functions loaded."); return true; } else { - ELOG("VulkanLoad: Failed to load Vulkan base functions."); + ERROR_LOG(G3D, "VulkanLoad: Failed to load Vulkan base functions."); #ifndef _WIN32 dlclose(vulkanLibrary); #else @@ -548,14 +549,14 @@ void VulkanLoadInstanceFunctions(VkInstance instance, const VulkanExtensions &en LOAD_INSTANCE_FUNC(instance, vkSetDebugUtilsObjectTagEXT); } - WLOG("Vulkan instance functions loaded."); + WARN_LOG(G3D, "Vulkan instance functions loaded."); } // On some implementations, loading functions (that have Device as their first parameter) via vkGetDeviceProcAddr may // increase performance - but then these function pointers will only work on that specific device. Thus, this loader is not very // good for multi-device - not likely we'll ever try that anyway though. void VulkanLoadDeviceFunctions(VkDevice device, const VulkanExtensions &enabledExtensions) { - WLOG("Vulkan device functions loaded."); + WARN_LOG(G3D, "Vulkan device functions loaded."); LOAD_DEVICE_FUNC(device, vkQueueSubmit); LOAD_DEVICE_FUNC(device, vkQueueWaitIdle); diff --git a/Core/CoreTiming.cpp b/Core/CoreTiming.cpp index b87ee057ed..62fb2afca3 100644 --- a/Core/CoreTiming.cpp +++ b/Core/CoreTiming.cpp @@ -20,7 +20,6 @@ #include #include -#include "base/logging.h" #include "profiler/profiler.h" #include "Common/MsgHandler.h" diff --git a/Core/Dialog/SavedataParam.cpp b/Core/Dialog/SavedataParam.cpp index 1e021d94fc..d14f3395e3 100644 --- a/Core/Dialog/SavedataParam.cpp +++ b/Core/Dialog/SavedataParam.cpp @@ -16,7 +16,7 @@ // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. #include "i18n/i18n.h" -#include "base/logging.h" +#include "Common/Log.h" #include "Common/Serialize/Serializer.h" #include "Common/Serialize/SerializeFuncs.h" #include "Common/StringUtils.h" @@ -213,7 +213,7 @@ void SavedataParam::Init() if (handle >= 0) { pspFileSystem.CloseFile(handle); } else { - ELOG("Failed to create .nomedia file"); + ERROR_LOG(IO, "Failed to create .nomedia file"); } #endif } diff --git a/Core/HLE/HLE.cpp b/Core/HLE/HLE.cpp index 06cdf4f390..d83c9e3fe5 100644 --- a/Core/HLE/HLE.cpp +++ b/Core/HLE/HLE.cpp @@ -20,10 +20,10 @@ #include #include -#include "base/logging.h" #include "base/timeutil.h" #include "profiler/profiler.h" +#include "Common/Log.h" #include "Common/Serialize/SerializeFuncs.h" #include "Core/Config.h" #include "Core/Core.h" diff --git a/Core/HLE/ReplaceTables.cpp b/Core/HLE/ReplaceTables.cpp index a1d9e25e5c..359b76e23c 100644 --- a/Core/HLE/ReplaceTables.cpp +++ b/Core/HLE/ReplaceTables.cpp @@ -20,7 +20,6 @@ #include #include "base/basictypes.h" -#include "base/logging.h" #include "Common/Log.h" #include "Core/Config.h" #include "Core/Debugger/Breakpoints.h" diff --git a/Core/HLE/sceDisplay.cpp b/Core/HLE/sceDisplay.cpp index 5551513e7f..406c757635 100644 --- a/Core/HLE/sceDisplay.cpp +++ b/Core/HLE/sceDisplay.cpp @@ -26,10 +26,6 @@ #include #endif -// TODO: Move the relevant parts into common. Don't want the core -// to be dependent on "native", I think. Or maybe should get rid of common -// and move everything into native... -#include "base/logging.h" #include "base/timeutil.h" #include "i18n/i18n.h" #include "profiler/profiler.h" diff --git a/Core/HLE/sceKernelThread.cpp b/Core/HLE/sceKernelThread.cpp index 5e4ebe84d1..c11bf8b2ad 100644 --- a/Core/HLE/sceKernelThread.cpp +++ b/Core/HLE/sceKernelThread.cpp @@ -21,8 +21,6 @@ #include #include -#include "base/logging.h" - #include "Common/CommonTypes.h" #include "Common/LogManager.h" #include "Common/Serialize/Serializer.h" diff --git a/Core/HW/StereoResampler.cpp b/Core/HW/StereoResampler.cpp index 29ecf60b76..5075465589 100644 --- a/Core/HW/StereoResampler.cpp +++ b/Core/HW/StereoResampler.cpp @@ -35,11 +35,11 @@ #include #include -#include "base/logging.h" #include "base/timeutil.h" #include "base/NativeApp.h" #include "Common/Serialize/Serializer.h" #include "Common/MathUtil.h" +#include "Common/Log.h" #include "Core/Config.h" #include "Core/ConfigValues.h" #include "Core/HW/StereoResampler.h" @@ -71,7 +71,7 @@ StereoResampler::StereoResampler() // If framerate is "close"... if (refresh != 60.0f && refresh > 50.0f && refresh < 70.0f) { int input_sample_rate = (int)(44100 * (refresh / 60.0f)); - ILOG("StereoResampler: Adjusting target sample rate to %dHz", input_sample_rate); + INFO_LOG(AUDIO, "StereoResampler: Adjusting target sample rate to %dHz", input_sample_rate); m_input_sample_rate = input_sample_rate; } diff --git a/Core/MIPS/ARM64/Arm64Asm.cpp b/Core/MIPS/ARM64/Arm64Asm.cpp index 81f67fa3a3..99f4dadf65 100644 --- a/Core/MIPS/ARM64/Arm64Asm.cpp +++ b/Core/MIPS/ARM64/Arm64Asm.cpp @@ -18,15 +18,14 @@ #include "ppsspp_config.h" #if PPSSPP_ARCH(ARM64) -#include "base/logging.h" - +#include "Common/Log.h" +#include "Common/MemoryUtil.h" +#include "Common/CPUDetect.h" +#include "Common/Arm64Emitter.h" #include "Core/MemMap.h" #include "Core/MIPS/MIPS.h" #include "Core/System.h" #include "Core/CoreTiming.h" -#include "Common/MemoryUtil.h" -#include "Common/CPUDetect.h" -#include "Common/Arm64Emitter.h" #include "Core/MIPS/ARM64/Arm64Jit.h" #include "Core/MIPS/JitCommon/JitCommon.h" @@ -77,9 +76,9 @@ extern volatile CoreState coreState; void ShowPC(u32 downcount, void *membase, void *jitbase) { static int count = 0; if (currentMIPS) { - ELOG("ShowPC : %08x Downcount : %08x %d %p %p", currentMIPS->pc, downcount, count, membase, jitbase); + ERROR_LOG(JIT, "ShowPC : %08x Downcount : %08x %d %p %p", currentMIPS->pc, downcount, count, membase, jitbase); } else { - ELOG("Universe corrupt?"); + ERROR_LOG(JIT, "Universe corrupt?"); } //if (count > 2000) // exit(0); diff --git a/Core/MIPS/ARM64/Arm64Jit.cpp b/Core/MIPS/ARM64/Arm64Jit.cpp index c1d2bac89f..e626599019 100644 --- a/Core/MIPS/ARM64/Arm64Jit.cpp +++ b/Core/MIPS/ARM64/Arm64Jit.cpp @@ -18,8 +18,8 @@ #include "ppsspp_config.h" #if PPSSPP_ARCH(ARM64) -#include "base/logging.h" #include "profiler/profiler.h" +#include "Common/Log.h" #include "Common/Serialize/Serializer.h" #include "Common/Serialize/SerializeFuncs.h" #include "Common/CPUDetect.h" @@ -49,17 +49,17 @@ using namespace Arm64JitConstants; static void DisassembleArm64Print(const u8 *data, int size) { std::vector lines = DisassembleArm64(data, size); for (auto s : lines) { - ILOG("%s", s.c_str()); + INFO_LOG(JIT, "%s", s.c_str()); } /* - ILOG("+++"); + INFO_LOG(JIT, "+++"); // A format friendly to Online Disassembler which gets endianness wrong for (size_t i = 0; i < lines.size(); i++) { uint32_t opcode = ((const uint32_t *)data)[i]; - ILOG("%d/%d: %08x", (int)(i+1), (int)lines.size(), swap32(opcode)); + INFO_LOG(JIT, "%d/%d: %08x", (int)(i+1), (int)lines.size(), swap32(opcode)); } - ILOG("==="); - ILOG("===");*/ + INFO_LOG(JIT, "==="); + INFO_LOG(JIT, "===");*/ } static u32 JitBreakpoint() { @@ -169,7 +169,7 @@ void Arm64Jit::FlushPrefixV() { } void Arm64Jit::ClearCache() { - ILOG("ARM64Jit: Clearing the cache!"); + INFO_LOG(JIT, "ARM64Jit: Clearing the cache!"); blocks.Clear(); ClearCodeSpace(jitStartOffset); FlushIcacheSection(region + jitStartOffset, region + region_size - jitStartOffset); @@ -361,16 +361,16 @@ const u8 *Arm64Jit::DoJit(u32 em_address, JitBlock *b) { char temp[256]; if (logBlocks > 0 && dontLogBlocks == 0) { - ILOG("=============== mips %d ===============", blocks.GetNumBlocks()); + INFO_LOG(JIT, "=============== mips %d ===============", blocks.GetNumBlocks()); for (u32 cpc = em_address; cpc != GetCompilerPC() + 4; cpc += 4) { MIPSDisAsm(Memory::Read_Opcode_JIT(cpc), cpc, temp, true); - ILOG("M: %08x %s", cpc, temp); + INFO_LOG(JIT, "M: %08x %s", cpc, temp); } } b->codeSize = GetCodePtr() - b->normalEntry; if (logBlocks > 0 && dontLogBlocks == 0) { - ILOG("=============== ARM (%d instructions -> %d bytes) ===============", js.numInstructions, b->codeSize); + INFO_LOG(JIT, "=============== ARM (%d instructions -> %d bytes) ===============", js.numInstructions, b->codeSize); DisassembleArm64Print(b->normalEntry, GetCodePtr() - b->normalEntry); } if (logBlocks > 0) diff --git a/Core/MIPS/ARM64/Arm64RegCache.cpp b/Core/MIPS/ARM64/Arm64RegCache.cpp index a853359ae4..b084adf109 100644 --- a/Core/MIPS/ARM64/Arm64RegCache.cpp +++ b/Core/MIPS/ARM64/Arm64RegCache.cpp @@ -18,7 +18,7 @@ #include "ppsspp_config.h" #if PPSSPP_ARCH(ARM64) -#include "base/logging.h" +#include "Common/Log.h" #include "Core/MemMap.h" #include "Core/MIPS/ARM64/Arm64RegCache.h" #include "Core/MIPS/ARM64/Arm64Jit.h" @@ -150,7 +150,7 @@ bool Arm64RegCache::IsMappedAsPointer(MIPSGPReg mipsReg) { return ar[mr[mipsReg].reg].pointerified; } else if (mr[mipsReg].loc == ML_ARMREG_IMM) { if (ar[mr[mipsReg].reg].pointerified) { - ELOG("Really shouldn't be pointerified here"); + ERROR_LOG(JIT, "Really shouldn't be pointerified here"); } } else if (mr[mipsReg].loc == ML_ARMREG_AS_PTR) { return true; @@ -164,7 +164,7 @@ void Arm64RegCache::MarkDirty(ARM64Reg reg) { void Arm64RegCache::SetRegImm(ARM64Reg reg, u64 imm) { if (reg == INVALID_REG) { - ELOG("SetRegImm to invalid register: at %08x", js_->compilerPC); + ERROR_LOG(JIT, "SetRegImm to invalid register: at %08x", js_->compilerPC); return; } // On ARM64, at least Cortex A57, good old MOVT/MOVW (MOVK in 64-bit) is really fast. @@ -174,7 +174,7 @@ void Arm64RegCache::SetRegImm(ARM64Reg reg, u64 imm) { void Arm64RegCache::MapRegTo(ARM64Reg reg, MIPSGPReg mipsReg, int mapFlags) { if (mr[mipsReg].isStatic) { - ELOG("Cannot MapRegTo static register %d", mipsReg); + ERROR_LOG(JIT, "Cannot MapRegTo static register %d", mipsReg); return; } ar[reg].isDirty = (mapFlags & MAP_DIRTY) ? true : false; @@ -450,7 +450,7 @@ Arm64Gen::ARM64Reg Arm64RegCache::MapRegAsPointer(MIPSGPReg reg) { ar[a].pointerified = true; } } else { - ELOG("MapRegAsPointer : MapReg failed to allocate a register?"); + ERROR_LOG(JIT, "MapRegAsPointer : MapReg failed to allocate a register?"); } return retval; } @@ -506,7 +506,7 @@ void Arm64RegCache::MapDirtyDirtyInIn(MIPSGPReg rd1, MIPSGPReg rd2, MIPSGPReg rs void Arm64RegCache::FlushArmReg(ARM64Reg r) { if (r == INVALID_REG) { - ELOG("FlushArmReg called on invalid register %d", r); + ERROR_LOG(JIT, "FlushArmReg called on invalid register %d", r); return; } if (ar[r].mipsReg == MIPS_REG_INVALID) { @@ -517,7 +517,7 @@ void Arm64RegCache::FlushArmReg(ARM64Reg r) { return; } if (mr[ar[r].mipsReg].isStatic) { - ELOG("Cannot FlushArmReg a statically mapped register"); + ERROR_LOG(JIT, "Cannot FlushArmReg a statically mapped register"); return; } auto &mreg = mr[ar[r].mipsReg]; @@ -629,7 +629,7 @@ ARM64Reg Arm64RegCache::ARM64RegForFlush(MIPSGPReg r) { void Arm64RegCache::FlushR(MIPSGPReg r) { if (mr[r].isStatic) { - ELOG("Cannot flush static reg %d", r); + ERROR_LOG(JIT, "Cannot flush static reg %d", r); return; } @@ -753,7 +753,7 @@ void Arm64RegCache::FlushAll() { } else if (mr[i].loc == ML_ARMREG_IMM) { // The register already contains the immediate. if (ar[armReg].pointerified) { - ELOG("ML_ARMREG_IMM but pointerified. Wrong."); + ERROR_LOG(JIT, "ML_ARMREG_IMM but pointerified. Wrong."); ar[armReg].pointerified = false; } mr[i].loc = ML_ARMREG; @@ -762,7 +762,7 @@ void Arm64RegCache::FlushAll() { mr[i].loc = ML_ARMREG; } if (i != MIPS_REG_ZERO && mr[i].reg == INVALID_REG) { - ELOG("ARM reg of static %i is invalid", i); + ERROR_LOG(JIT, "ARM reg of static %i is invalid", i); continue; } } else { diff --git a/Core/MIPS/ARM64/Arm64RegCacheFPU.cpp b/Core/MIPS/ARM64/Arm64RegCacheFPU.cpp index 7df249eaaa..3861fb44a1 100644 --- a/Core/MIPS/ARM64/Arm64RegCacheFPU.cpp +++ b/Core/MIPS/ARM64/Arm64RegCacheFPU.cpp @@ -20,8 +20,8 @@ #include -#include "base/logging.h" #include "Common/CPUDetect.h" +#include "Common/Log.h" #include "Core/Reporting.h" #include "Core/MIPS/MIPS.h" #include "Core/MIPS/ARM64/Arm64RegCacheFPU.h" diff --git a/Core/MIPS/IR/IRAsm.cpp b/Core/MIPS/IR/IRAsm.cpp index f5d9c7ad31..38d40469d8 100644 --- a/Core/MIPS/IR/IRAsm.cpp +++ b/Core/MIPS/IR/IRAsm.cpp @@ -15,13 +15,12 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. -#include "base/logging.h" - +#include "Common/Log.h" +#include "Common/MemoryUtil.h" #include "Core/MemMap.h" #include "Core/MIPS/MIPS.h" #include "Core/System.h" #include "Core/CoreTiming.h" -#include "Common/MemoryUtil.h" #include "Core/MIPS/IR/IRJit.h" #include "Core/MIPS/JitCommon/JitCommon.h" diff --git a/Core/MIPS/IR/IRFrontend.cpp b/Core/MIPS/IR/IRFrontend.cpp index 86f6b0e198..c3a2df444a 100644 --- a/Core/MIPS/IR/IRFrontend.cpp +++ b/Core/MIPS/IR/IRFrontend.cpp @@ -15,8 +15,7 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. -#include "base/logging.h" - +#include "Common/Log.h" #include "Common/Serialize/Serializer.h" #include "Common/Serialize/SerializeFuncs.h" #include "Core/Debugger/Breakpoints.h" diff --git a/Core/MIPS/IR/IRJit.cpp b/Core/MIPS/IR/IRJit.cpp index 12af157044..ec279776cd 100644 --- a/Core/MIPS/IR/IRJit.cpp +++ b/Core/MIPS/IR/IRJit.cpp @@ -16,9 +16,11 @@ // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. #include -#include "base/logging.h" + #include "ext/xxhash.h" #include "profiler/profiler.h" + +#include "Common/Log.h" #include "Common/Serialize/Serializer.h" #include "Common/StringUtils.h" @@ -61,7 +63,7 @@ void IRJit::UpdateFCR31() { } void IRJit::ClearCache() { - ILOG("IRJit: Clearing the cache!"); + INFO_LOG(JIT, "IRJit: Clearing the cache!"); blocks_.Clear(); } diff --git a/Core/MIPS/x86/CompVFPU.cpp b/Core/MIPS/x86/CompVFPU.cpp index da083d97bb..de23b3b2d2 100644 --- a/Core/MIPS/x86/CompVFPU.cpp +++ b/Core/MIPS/x86/CompVFPU.cpp @@ -25,10 +25,10 @@ #include #include -#include "base/logging.h" #include "math/math_util.h" #include "Common/CPUDetect.h" +#include "Common/Log.h" #include "Core/Compatibility.h" #include "Core/Config.h" #include "Core/MemMap.h" diff --git a/GPU/Common/ShaderTranslation.cpp b/GPU/Common/ShaderTranslation.cpp index 3693e2393d..d535d063c1 100644 --- a/GPU/Common/ShaderTranslation.cpp +++ b/GPU/Common/ShaderTranslation.cpp @@ -34,10 +34,10 @@ #undef free #endif -#include "base/logging.h" #include "base/basictypes.h" #include "base/stringutil.h" -#include "ShaderTranslation.h" +#include "Common/Log.h" +#include "GPU/Common/ShaderTranslation.h" #include "ext/glslang/SPIRV/GlslangToSpv.h" #include "thin3d/thin3d.h" #include "gfx_es2/gpu_features.h" @@ -211,7 +211,7 @@ bool ConvertToVulkanGLSL(std::string *dest, TranslatedShaderMetadata *destMetada } // DUMPLOG(src.c_str()); - // ILOG("---->"); + // INFO_LOG(SYSTEM, "---->"); // DUMPLOG(LineNumberString(out.str()).c_str()); *dest = out.str(); diff --git a/GPU/Common/VertexDecoderArm64.cpp b/GPU/Common/VertexDecoderArm64.cpp index a4714ee070..7ba612affa 100644 --- a/GPU/Common/VertexDecoderArm64.cpp +++ b/GPU/Common/VertexDecoderArm64.cpp @@ -23,8 +23,8 @@ #define ARM64 #endif -#include "base/logging.h" #include "Common/CPUDetect.h" +#include "Common/Log.h" #include "Core/Config.h" #include "Core/Reporting.h" #include "Common/Arm64Emitter.h" @@ -287,12 +287,12 @@ JittedVertexDecoder VertexDecoderJitCache::Compile(const VertexDecoder &dec, int if (log) { char temp[1024] = { 0 }; dec.ToString(temp); - ILOG("=== %s (%d bytes) ===", temp, (int)(GetCodePtr() - start)); + INFO_LOG(JIT, "=== %s (%d bytes) ===", temp, (int)(GetCodePtr() - start)); std::vector lines = DisassembleArm64(start, (int)(GetCodePtr() - start)); for (auto line : lines) { - ILOG("%s", line.c_str()); + INFO_LOG(JIT, "%s", line.c_str()); } - ILOG("=========="); + INFO_LOG(JIT, "=========="); } *jittedSize = (int)(GetCodePtr() - start); diff --git a/GPU/Common/VertexDecoderCommon.cpp b/GPU/Common/VertexDecoderCommon.cpp index 0b8ee6736c..87b8114303 100644 --- a/GPU/Common/VertexDecoderCommon.cpp +++ b/GPU/Common/VertexDecoderCommon.cpp @@ -19,8 +19,8 @@ #include #include "base/basictypes.h" -#include "base/logging.h" +#include "Common/Log.h" #include "Common/CPUDetect.h" #include "Common/ColorConv.h" #include "Core/Config.h" diff --git a/GPU/D3D11/D3D11Util.cpp b/GPU/D3D11/D3D11Util.cpp index a3b2e963af..7a7b0aac25 100644 --- a/GPU/D3D11/D3D11Util.cpp +++ b/GPU/D3D11/D3D11Util.cpp @@ -13,10 +13,10 @@ #include "thin3d/d3d11_loader.h" #endif -#include "base/logging.h" #include "base/stringutil.h" #include "D3D11Util.h" +#include "Common/Log.h" static std::vector CompileShaderToBytecode(const char *code, size_t codeSize, const char *target, UINT flags) { ID3DBlob *compiledCode = nullptr; @@ -25,7 +25,7 @@ static std::vector CompileShaderToBytecode(const char *code, size_t cod std::string errors; if (errorMsgs) { errors = std::string((const char *)errorMsgs->GetBufferPointer(), errorMsgs->GetBufferSize()); - ELOG("%s: %s", SUCCEEDED(result) ? "warnings" : "errors", errors.c_str()); + ERROR_LOG(G3D, "%s: %s", SUCCEEDED(result) ? "warnings" : "errors", errors.c_str()); OutputDebugStringA(LineNumberString(code).c_str()); errorMsgs->Release(); } diff --git a/GPU/D3D11/DepalettizeShaderD3D11.cpp b/GPU/D3D11/DepalettizeShaderD3D11.cpp index 854c38b34b..c67ce845f0 100644 --- a/GPU/D3D11/DepalettizeShaderD3D11.cpp +++ b/GPU/D3D11/DepalettizeShaderD3D11.cpp @@ -19,7 +19,6 @@ #include #include "base/basictypes.h" -#include "base/logging.h" #include "Common/Log.h" #include "Common/ColorConv.h" #include "Common/StringUtils.h" diff --git a/GPU/D3D11/DrawEngineD3D11.cpp b/GPU/D3D11/DrawEngineD3D11.cpp index 2eb66a4472..a4780b0b80 100644 --- a/GPU/D3D11/DrawEngineD3D11.cpp +++ b/GPU/D3D11/DrawEngineD3D11.cpp @@ -17,9 +17,9 @@ #include -#include "base/logging.h" #include "base/timeutil.h" +#include "Common/Log.h" #include "Common/MemoryUtil.h" #include "Core/MemMap.h" #include "Core/System.h" diff --git a/GPU/D3D11/GPU_D3D11.cpp b/GPU/D3D11/GPU_D3D11.cpp index 31a2faa449..fcd1fa0d8d 100644 --- a/GPU/D3D11/GPU_D3D11.cpp +++ b/GPU/D3D11/GPU_D3D11.cpp @@ -36,10 +36,10 @@ #include +#include "Common/Log.h" #include "Common/Serialize/Serializer.h" #include "Common/GraphicsContext.h" #include "base/NativeApp.h" -#include "base/logging.h" #include "profiler/profiler.h" #include "i18n/i18n.h" #include "Core/Debugger/Breakpoints.h" diff --git a/GPU/D3D11/ShaderManagerD3D11.cpp b/GPU/D3D11/ShaderManagerD3D11.cpp index 5e4a39c062..7ca95da1fb 100644 --- a/GPU/D3D11/ShaderManagerD3D11.cpp +++ b/GPU/D3D11/ShaderManagerD3D11.cpp @@ -22,12 +22,12 @@ #include -#include "base/logging.h" #include "math/lin/matrix4x4.h" #include "math/math_util.h" #include "math/dataconv.h" #include "thin3d/thin3d.h" #include "util/text/utf8.h" +#include "Common/Log.h" #include "Common/Common.h" #include "Core/Config.h" #include "Core/Reporting.h" diff --git a/GPU/D3D11/StencilBufferD3D11.cpp b/GPU/D3D11/StencilBufferD3D11.cpp index 7c47806c74..d4b6dc164e 100644 --- a/GPU/D3D11/StencilBufferD3D11.cpp +++ b/GPU/D3D11/StencilBufferD3D11.cpp @@ -17,9 +17,9 @@ #include -#include "base/logging.h" - #include "ext/native/thin3d/thin3d.h" + +#include "Common/Log.h" #include "Core/Reporting.h" #include "GPU/Common/StencilCommon.h" #include "GPU/D3D11/FramebufferManagerD3D11.h" diff --git a/GPU/Directx9/DepalettizeShaderDX9.cpp b/GPU/Directx9/DepalettizeShaderDX9.cpp index 2365e41d58..ec91de50ba 100644 --- a/GPU/Directx9/DepalettizeShaderDX9.cpp +++ b/GPU/Directx9/DepalettizeShaderDX9.cpp @@ -18,7 +18,6 @@ #include #include -#include "base/logging.h" #include "thin3d/thin3d.h" #include "Common/Log.h" #include "Common/StringUtils.h" diff --git a/GPU/Directx9/DrawEngineDX9.cpp b/GPU/Directx9/DrawEngineDX9.cpp index 521393b548..a10a6fca2d 100644 --- a/GPU/Directx9/DrawEngineDX9.cpp +++ b/GPU/Directx9/DrawEngineDX9.cpp @@ -15,9 +15,9 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. -#include "base/logging.h" #include "base/timeutil.h" +#include "Common/Log.h" #include "Common/MemoryUtil.h" #include "Core/MemMap.h" #include "Core/System.h" diff --git a/GPU/Directx9/GPU_DX9.cpp b/GPU/Directx9/GPU_DX9.cpp index 73049a864b..1ba0958f66 100644 --- a/GPU/Directx9/GPU_DX9.cpp +++ b/GPU/Directx9/GPU_DX9.cpp @@ -20,7 +20,6 @@ #include "Common/Serialize/Serializer.h" #include "Common/GraphicsContext.h" #include "base/NativeApp.h" -#include "base/logging.h" #include "profiler/profiler.h" #include "i18n/i18n.h" #include "Core/Debugger/Breakpoints.h" diff --git a/GPU/Directx9/ShaderManagerDX9.cpp b/GPU/Directx9/ShaderManagerDX9.cpp index e3157371e8..64a1d28137 100644 --- a/GPU/Directx9/ShaderManagerDX9.cpp +++ b/GPU/Directx9/ShaderManagerDX9.cpp @@ -21,8 +21,8 @@ #include #include + #include "gfx/d3d9_shader.h" -#include "base/logging.h" #include "base/stringutil.h" #include "i18n/i18n.h" #include "math/lin/matrix4x4.h" diff --git a/GPU/Directx9/StencilBufferDX9.cpp b/GPU/Directx9/StencilBufferDX9.cpp index 5c0459c6e8..4310a1654e 100644 --- a/GPU/Directx9/StencilBufferDX9.cpp +++ b/GPU/Directx9/StencilBufferDX9.cpp @@ -17,8 +17,6 @@ #include -#include "base/logging.h" - #include "gfx/d3d9_state.h" #include "ext/native/thin3d/thin3d.h" #include "Core/Reporting.h" diff --git a/GPU/GLES/DepalettizeShaderGLES.cpp b/GPU/GLES/DepalettizeShaderGLES.cpp index 348411e082..59517c0f4d 100644 --- a/GPU/GLES/DepalettizeShaderGLES.cpp +++ b/GPU/GLES/DepalettizeShaderGLES.cpp @@ -17,7 +17,6 @@ #include -#include "base/logging.h" #include "Common/Log.h" #include "Common/StringUtils.h" #include "Core/Reporting.h" diff --git a/GPU/GLES/DrawEngineGLES.cpp b/GPU/GLES/DrawEngineGLES.cpp index 737548acd1..e245fe3112 100644 --- a/GPU/GLES/DrawEngineGLES.cpp +++ b/GPU/GLES/DrawEngineGLES.cpp @@ -15,7 +15,6 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. -#include "base/logging.h" #include "base/timeutil.h" #include "Common/MemoryUtil.h" diff --git a/GPU/GLES/FragmentShaderGeneratorGLES.cpp b/GPU/GLES/FragmentShaderGeneratorGLES.cpp index 97f319fd7e..945f3fb17b 100644 --- a/GPU/GLES/FragmentShaderGeneratorGLES.cpp +++ b/GPU/GLES/FragmentShaderGeneratorGLES.cpp @@ -18,8 +18,8 @@ #include #include +#include "Common/Log.h" #include "Common/StringUtils.h" -#include "base/logging.h" #include "gfx_es2/gpu_features.h" #include "Core/Reporting.h" #include "Core/Config.h" diff --git a/GPU/GLES/GPU_GLES.cpp b/GPU/GLES/GPU_GLES.cpp index 1597ae0218..40fda18e5e 100644 --- a/GPU/GLES/GPU_GLES.cpp +++ b/GPU/GLES/GPU_GLES.cpp @@ -15,10 +15,10 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. -#include "base/logging.h" #include "profiler/profiler.h" #include "i18n/i18n.h" +#include "Common/Log.h" #include "Common/Serialize/Serializer.h" #include "Common/FileUtil.h" #include "Common/GraphicsContext.h" diff --git a/GPU/GLES/ShaderManagerGLES.cpp b/GPU/GLES/ShaderManagerGLES.cpp index eb992d642a..58001193b8 100644 --- a/GPU/GLES/ShaderManagerGLES.cpp +++ b/GPU/GLES/ShaderManagerGLES.cpp @@ -24,7 +24,6 @@ #include #include "math/dataconv.h" -#include "base/logging.h" #include "base/timeutil.h" #include "gfx/gl_debug_log.h" #include "gfx_es2/gpu_features.h" @@ -35,6 +34,7 @@ #include "thin3d/thin3d.h" #include "thin3d/GLRenderManager.h" +#include "Common/Log.h" #include "Common/FileUtil.h" #include "Core/Config.h" #include "Core/Host.h" diff --git a/GPU/Vulkan/DrawEngineVulkan.cpp b/GPU/Vulkan/DrawEngineVulkan.cpp index cad3b34225..963fa0f0a6 100644 --- a/GPU/Vulkan/DrawEngineVulkan.cpp +++ b/GPU/Vulkan/DrawEngineVulkan.cpp @@ -17,12 +17,12 @@ #include -#include "base/logging.h" #include "base/timeutil.h" #include "math/dataconv.h" #include "profiler/profiler.h" #include "thin3d/VulkanRenderManager.h" +#include "Common/Log.h" #include "Common/MemoryUtil.h" #include "Core/MemMap.h" #include "Core/System.h" diff --git a/GPU/Vulkan/FragmentShaderGeneratorVulkan.cpp b/GPU/Vulkan/FragmentShaderGeneratorVulkan.cpp index 87e07857c0..87920c52a7 100644 --- a/GPU/Vulkan/FragmentShaderGeneratorVulkan.cpp +++ b/GPU/Vulkan/FragmentShaderGeneratorVulkan.cpp @@ -18,9 +18,10 @@ #include #include -#include "Common/StringUtils.h" -#include "base/logging.h" #include "gfx_es2/gpu_features.h" + +#include "Common/Log.h" +#include "Common/StringUtils.h" #include "Core/Reporting.h" #include "Core/Config.h" #include "GPU/Common/GPUStateUtils.h" diff --git a/GPU/Vulkan/GPU_Vulkan.cpp b/GPU/Vulkan/GPU_Vulkan.cpp index eb31fbc95e..6442b3e8d7 100644 --- a/GPU/Vulkan/GPU_Vulkan.cpp +++ b/GPU/Vulkan/GPU_Vulkan.cpp @@ -18,10 +18,10 @@ #include -#include "base/logging.h" #include "base/timeutil.h" #include "profiler/profiler.h" +#include "Common/Log.h" #include "Common/Serialize/Serializer.h" #include "Common/FileUtil.h" #include "Common/GraphicsContext.h" diff --git a/GPU/Vulkan/ShaderManagerVulkan.cpp b/GPU/Vulkan/ShaderManagerVulkan.cpp index 4cd2c98363..c3d937049f 100644 --- a/GPU/Vulkan/ShaderManagerVulkan.cpp +++ b/GPU/Vulkan/ShaderManagerVulkan.cpp @@ -19,7 +19,6 @@ //#define SHADERLOG #endif -#include "base/logging.h" #include "base/stringutil.h" #include "math/lin/matrix4x4.h" #include "math/math_util.h" @@ -27,6 +26,7 @@ #include "profiler/profiler.h" #include "thin3d/thin3d.h" #include "util/text/utf8.h" + #include "Common/Vulkan/VulkanContext.h" #include "Common/Vulkan/VulkanMemory.h" #include "Common/Log.h" diff --git a/GPU/Vulkan/StencilBufferVulkan.cpp b/GPU/Vulkan/StencilBufferVulkan.cpp index c952a57b37..e655780476 100644 --- a/GPU/Vulkan/StencilBufferVulkan.cpp +++ b/GPU/Vulkan/StencilBufferVulkan.cpp @@ -15,10 +15,10 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. -#include "base/logging.h" - #include "ext/native/thin3d/thin3d.h" #include "ext/native/thin3d/VulkanRenderManager.h" + +#include "Common/Log.h" #include "Core/Reporting.h" #include "GPU/Common/StencilCommon.h" #include "GPU/Vulkan/FramebufferManagerVulkan.h" diff --git a/GPU/Vulkan/VulkanUtil.cpp b/GPU/Vulkan/VulkanUtil.cpp index 7e0ad69ba7..3d5d196e94 100644 --- a/GPU/Vulkan/VulkanUtil.cpp +++ b/GPU/Vulkan/VulkanUtil.cpp @@ -16,6 +16,7 @@ // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. #include "base/logging.h" // For OutputDebugStringUTF8. TODO: Move it. + #include "base/basictypes.h" #include "base/stringutil.h" #include "Common/Log.h" diff --git a/Qt/QtMain.h b/Qt/QtMain.h index 19a820e7fb..9a69162919 100644 --- a/Qt/QtMain.h +++ b/Qt/QtMain.h @@ -23,7 +23,6 @@ QTM_USE_NAMESPACE #include #include "base/display.h" -#include "base/logging.h" #include "base/timeutil.h" #include "file/zip_read.h" #include "gfx/gl_common.h" diff --git a/UI/BackgroundAudio.cpp b/UI/BackgroundAudio.cpp index d8db2bea6f..1de2def802 100644 --- a/UI/BackgroundAudio.cpp +++ b/UI/BackgroundAudio.cpp @@ -1,12 +1,12 @@ #include #include -#include "base/logging.h" #include "base/timeutil.h" #include "file/chunk_file.h" #include "file/vfs.h" #include "ui/root.h" +#include "Common/Log.h" #include "Common/Serialize/SerializeFuncs.h" #include "Common/CommonTypes.h" #include "Common/FixedSizeQueue.h" @@ -178,7 +178,7 @@ public: if (wave_.codec == PSP_CODEC_AT3) { decoder_->SetExtraData(&wave_.at3_extradata[2], 14, wave_.raw_bytes_per_frame); } - ILOG("read ATRAC, frames: %d, rate %d", wave_.numFrames, wave_.sample_rate); + INFO_LOG(AUDIO, "read ATRAC, frames: %d, rate %d", wave_.numFrames, wave_.sample_rate); } ~AT3PlusReader() { diff --git a/UI/EmuScreen.cpp b/UI/EmuScreen.cpp index 08476fbad0..59f5abed66 100644 --- a/UI/EmuScreen.cpp +++ b/UI/EmuScreen.cpp @@ -1231,7 +1231,7 @@ void EmuScreen::checkPowerDown() { if (PSP_IsInited()) { PSP_Shutdown(); } - ILOG("SELF-POWERDOWN!"); + INFO_LOG(SYSTEM, "SELF-POWERDOWN!"); screenManager()->switchScreen(new MainScreen()); bootPending_ = false; invalid_ = true; diff --git a/UI/GameInfoCache.cpp b/UI/GameInfoCache.cpp index e1c2db94f0..4b1746fb2b 100644 --- a/UI/GameInfoCache.cpp +++ b/UI/GameInfoCache.cpp @@ -634,7 +634,7 @@ handleELF: info_->pending = false; info_->working = false; - // ILOG("Completed writing info for %s", info_->GetTitle().c_str()); + // INFO_LOG(SYSTEM, "Completed writing info for %s", info_->GetTitle().c_str()); } float priority() override { diff --git a/UWP/StorageFileLoader.cpp b/UWP/StorageFileLoader.cpp index 7253288fd4..0c52448a58 100644 --- a/UWP/StorageFileLoader.cpp +++ b/UWP/StorageFileLoader.cpp @@ -1,6 +1,5 @@ #include "pch.h" #include "ppltasks.h" -#include "base/logging.h" #include "file/file_util.h" #include "thread/threadutil.h" #include "StorageFileLoader.h" @@ -96,7 +95,7 @@ void StorageFileLoader::threadfunc() { break; } default: - ELOG("Unknown operation"); + ERROR_LOG(SYSTEM, "Unknown operation"); operationRequested_ = false; break; } diff --git a/Windows/GPU/D3D11Context.cpp b/Windows/GPU/D3D11Context.cpp index 498467ea37..19fdd64dd1 100644 --- a/Windows/GPU/D3D11Context.cpp +++ b/Windows/GPU/D3D11Context.cpp @@ -5,8 +5,8 @@ #include #include -#include "base/logging.h" -#include "Base/display.h" +#include "Common/Log.h" +#include "base/display.h" #include "util/text/utf8.h" #include "i18n/i18n.h" diff --git a/Windows/GPU/D3D9Context.cpp b/Windows/GPU/D3D9Context.cpp index e87ed1ea60..c948654b98 100644 --- a/Windows/GPU/D3D9Context.cpp +++ b/Windows/GPU/D3D9Context.cpp @@ -5,11 +5,11 @@ #include "gfx/d3d9_state.h" -#include "base/logging.h" #include "base/display.h" #include "util/text/utf8.h" #include "i18n/i18n.h" +#include "Common/Log.h" #include "Core/Config.h" #include "Core/ConfigValues.h" #include "Core/Reporting.h" diff --git a/headless/SDLHeadlessHost.cpp b/headless/SDLHeadlessHost.cpp index b45b50724d..b81b47a51e 100644 --- a/headless/SDLHeadlessHost.cpp +++ b/headless/SDLHeadlessHost.cpp @@ -32,7 +32,6 @@ #include "GPU/Common/GPUDebugInterface.h" #include "GPU/GPUState.h" -#include "base/logging.h" #include "base/timeutil.h" #include "gfx/gl_common.h" #include "gfx_es2/gpu_features.h" diff --git a/headless/WindowsHeadlessHost.cpp b/headless/WindowsHeadlessHost.cpp index dba04b79ad..30a9f1b7b2 100644 --- a/headless/WindowsHeadlessHost.cpp +++ b/headless/WindowsHeadlessHost.cpp @@ -33,7 +33,6 @@ #include "Windows/GPU/D3D11Context.h" #include "Windows/GPU/WindowsVulkanContext.h" -#include "base/logging.h" #include "base/timeutil.h" #include "gfx/gl_common.h" #include "gfx_es2/gpu_features.h"