diff options
Diffstat (limited to 'utils/log.c')
-rw-r--r-- | utils/log.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/log.c b/utils/log.c index 15a7a9e75..f54430305 100644 --- a/utils/log.c +++ b/utils/log.c @@ -173,6 +173,7 @@ static const char *nslog_gettime(void) void nslog_log(const char *file, const char *func, int ln, const char *format, ...) { +#ifndef _TARGET_IS_KOLIBRIOS va_list ap; fprintf(logfile, "%s %s:%i %s: ", nslog_gettime(), file, ln, func); @@ -184,6 +185,17 @@ void nslog_log(const char *file, const char *func, int ln, const char *format, . va_end(ap); fputc('\n', logfile); +#else + va_list ap; + char message[1000]; + + va_start(ap, format); + vsprintf(message, format, ap); + va_end(ap); + + debug_board_printf(message); + debug_board_printf("\n"); +#endif } #endif |