summaryrefslogtreecommitdiffstats
path: root/runtime/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/io.c')
-rw-r--r--runtime/io.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/runtime/io.c b/runtime/io.c
index 1483acfd..34c69727 100644
--- a/runtime/io.c
+++ b/runtime/io.c
@@ -11,11 +11,6 @@
#ifndef _IO_C_
#define _IO_C_
-#include "transport/transport.c"
-
-void _stp_print_flush (void);
-void _stp_string_cat_cstr (String str1, const char *str2);
-
/** @file io.c
* @brief I/O for printing warnings, errors and debug messages.
*/
@@ -27,12 +22,6 @@ void _stp_string_cat_cstr (String str1, const char *str2);
#define ERR_STRING "ERROR: "
enum code { INFO=0, WARN, ERROR, DBUG };
-/** private buffer for _stp_log() */
-#define STP_LOG_BUF_LEN 256
-
-typedef char _stp_lbuf[STP_LOG_BUF_LEN];
-void *Stp_lbuf = NULL;
-
static void _stp_vlog (enum code type, const char *func, int line, const char *fmt, va_list args)
{
int num;
@@ -60,7 +49,7 @@ static void _stp_vlog (enum code type, const char *func, int line, const char *f
if (type != DBUG)
_stp_write(STP_OOB_DATA, buf, start + num + 1);
else {
- _stp_string_cat_cstr(_stp_stdout,buf);
+ _stp_print(buf);
_stp_print_flush();
}
}