From d23e64c18b3306f9cd95372745bed7172639720e Mon Sep 17 00:00:00 2001 From: negativeExponent Date: Mon, 3 Aug 2020 07:58:26 +0800 Subject: Add debug-level log function --- libpcsxcore/system.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libpcsxcore') diff --git a/libpcsxcore/system.h b/libpcsxcore/system.h index c869fdf..cd1814c 100644 --- a/libpcsxcore/system.h +++ b/libpcsxcore/system.h @@ -35,6 +35,7 @@ void SysCloseLibrary(void *lib); // Closes Library void SysUpdate(); // Called on VBlank (to update i.e. pads) void SysRunGui(); // Returns to the Gui void SysClose(); // Close mem and plugins +void SysDLog(const char *fmt, ...); // Prints debug-level logs #ifdef __cplusplus } -- cgit v1.2.3 From 6205159e4f51b9d79064fd1ce8dd6baa3809c3bc Mon Sep 17 00:00:00 2001 From: negativeExponent Date: Mon, 3 Aug 2020 08:14:45 +0800 Subject: lightrec/plugin.c: Use logging interface instead of printf --- libpcsxcore/lightrec/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpcsxcore') diff --git a/libpcsxcore/lightrec/plugin.c b/libpcsxcore/lightrec/plugin.c index 79bf021..9e3c0c7 100644 --- a/libpcsxcore/lightrec/plugin.c +++ b/libpcsxcore/lightrec/plugin.c @@ -549,7 +549,7 @@ static void lightrec_plugin_execute_block(void) } if ((psxRegs.cycle & ~0xfffffff) != old_cycle_counter) { - printf("RAM usage: Lightrec %u KiB, IR %u KiB, CODE %u KiB, " + SysDLog("RAM usage: Lightrec %u KiB, IR %u KiB, CODE %u KiB, " "MIPS %u KiB, TOTAL %u KiB, avg. IPI %f\n", lightrec_get_mem_usage(MEM_FOR_LIGHTREC) / 1024, lightrec_get_mem_usage(MEM_FOR_IR) / 1024, -- cgit v1.2.3