diff options
Diffstat (limited to 'lib/print.c')
-rw-r--r-- | lib/print.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/print.c b/lib/print.c index 738e42f..1cbed69 100644 --- a/lib/print.c +++ b/lib/print.c @@ -2,7 +2,7 @@ #include <conv.h> #include <def.h> #include <mem.h> -/* #include <serial.h> */ +#include <serial.h> #include <str.h> static void append(char *dest, char *src, int index) @@ -80,7 +80,7 @@ int vprintf(const char *format, va_list ap) char buf[1024]; memset(buf, 0, 1024); int len = vsprintf(buf, format, ap); - /* serial_print(buf); // TODO: Remove temporary serial print */ + serial_print(buf); // TODO: Remove temporary serial print return len; } @@ -94,3 +94,9 @@ int printf(const char *format, ...) return len; } + +int print(const char *str) +{ + serial_print(str); + return strlen(str); +} |