diff options
Diffstat (limited to 'ports/posix/src/stream_stdio.c')
| -rw-r--r-- | ports/posix/src/stream_stdio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ports/posix/src/stream_stdio.c b/ports/posix/src/stream_stdio.c index efa4b13..ed83e7b 100644 --- a/ports/posix/src/stream_stdio.c +++ b/ports/posix/src/stream_stdio.c @@ -13,6 +13,10 @@ int stdio_read(uint8_t* buf, size_t count, void **vptr, void *sptr) int stdio_write(uint8_t* buf, size_t count, void **vptr, void *sptr) { - printf("%s\n", buf); + int x; + for (x = 0; x < count; x++) { + printf("%x", buf[x]); + } + printf("\n"); return 0; } |
