diff options
| author | Jakob Fries <jakob.fries@gmail.com> | 2008-01-16 22:14:06 +0000 |
|---|---|---|
| committer | Jakob Fries <jakob.fries@gmail.com> | 2008-01-16 22:14:06 +0000 |
| commit | 75c8b2e9a58e7052f484e43291baa2d9ae1a384a (patch) | |
| tree | 40e065a48cae7e840cc6e8f9fc9771c500910f4a /src/engine/e_system.c | |
| parent | a9c90d6ac082dbfea5590c54d5be7a71dd112b5d (diff) | |
| download | zcatch-75c8b2e9a58e7052f484e43291baa2d9ae1a384a.tar.gz zcatch-75c8b2e9a58e7052f484e43291baa2d9ae1a384a.zip | |
Added first version of the console.
Diffstat (limited to 'src/engine/e_system.c')
| -rw-r--r-- | src/engine/e_system.c | 13 |
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; |