X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=device%2Flib%2Fz80%2Fprintf.c;h=65c25b9732de3f67423291f52d37a502d49ea267;hb=6dff9ccd51bf7d55f13daf0599cd9bb4bfe23eb0;hp=8f61bbae3ed55315d7d4b0308ea615681fe97efc;hpb=6c935a87a40491361403ca56c18d1a0c7f590626;p=fw%2Fsdcc diff --git a/device/lib/z80/printf.c b/device/lib/z80/printf.c index 8f61bbae..65c25b97 100644 --- a/device/lib/z80/printf.c +++ b/device/lib/z80/printf.c @@ -1,5 +1,5 @@ /** Simple printf implementation - Again a stub - will use the std one later... + This stub has been replaced by the std printf_large / sprintf / vprintf */ #include @@ -7,10 +7,7 @@ #define STATIC -/* PENDING */ -#define NULL 0 - -STATIC void _printn(unsigned u, unsigned base, char issigned, volatile void (*emitter)(char, void *), void *pData) +static void _printn(unsigned u, unsigned base, char issigned, volatile void (*emitter)(char, void *), void *pData) { const char *_hex = "0123456789ABCDEF"; if (issigned && ((int)u < 0)) { @@ -50,7 +47,7 @@ STATIC void _printf(const char *format, volatile void (*emitter)(char, void *), _printn(u, 16, 0, emitter, pData); break; } - case 's': + case 's': { char *s = va_arg(va, char *); while (*s) {