about summary refs log tree commit diff
path: root/src/engine/e_system.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/e_system.c')
-rw-r--r--src/engine/e_system.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/engine/e_system.c b/src/engine/e_system.c
index bf445c9c..e9c96fa3 100644
--- a/src/engine/e_system.c
+++ b/src/engine/e_system.c
@@ -8,6 +8,7 @@
 
 #include "e_detect.h"
 #include "e_system.h"
+#include "e_console.h"
 
 #if defined(CONF_FAMILY_UNIX)
 	#include <sys/time.h>
@@ -88,6 +89,18 @@ void dbg_msg(const char *sys, const char *fmt, ...)
 	va_end(args);
 	printf("\n");
 	fflush(stdout);
+
+	{
+		char str[2048];
+
+		sprintf(str, "[%s]: ", sys);
+
+		va_start(args, fmt);
+		vsprintf(str+strlen(str), fmt, args);
+		va_end(args);
+
+		console_print(str);
+	}
 }
 
 int memory_alloced = 0;