diff options
author | Ashish Gupta <ashmew2@gmail.com> | 2017-04-21 23:18:15 +0200 |
---|---|---|
committer | Ashish Gupta <ashmew2@gmail.com> | 2017-06-10 08:25:29 +0200 |
commit | dbe64238302aab07de75d520f9a85fa2856e8ce7 (patch) | |
tree | 7380272e351b5f146c9331a712978c95502434f6 /utils | |
parent | efdd93541042bcae19fb09d56d2a0a61252d0fd2 (diff) | |
download | netsurf-dbe64238302aab07de75d520f9a85fa2856e8ce7.tar.gz netsurf-dbe64238302aab07de75d520f9a85fa2856e8ce7.tar.bz2 |
Move port for kolibrios ahead.
Look at diff from master and reconcile.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/log.c | 12 | ||||
-rw-r--r-- | utils/nsoption.h | 3 |
2 files changed, 12 insertions, 3 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 diff --git a/utils/nsoption.h b/utils/nsoption.h index dc23a70ff..113efce8b 100644 --- a/utils/nsoption.h +++ b/utils/nsoption.h @@ -56,9 +56,6 @@ #define NSOPTION_UINT(NAME, DEFAULT) #define NSOPTION_COLOUR(NAME, DEFAULT) -#ifndef _TARGET_IS_KOLIBRIOS -#define _TARGET_IS_KOLIBRIOS -#endif #ifdef _TARGET_IS_KOLIBRIOS #define nskolibrios #endif |