From 8b7579979db87ace4b0aa5693a8a560d15224a96 Mon Sep 17 00:00:00 2001 From: sp193 Date: Sat, 23 Jun 2018 14:48:28 +0800 Subject: [PATCH] (iop_sbusdbg) updated prnt handler format. --- iop/debug/iop_sbusdbg/src/sbus_tty.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iop/debug/iop_sbusdbg/src/sbus_tty.c b/iop/debug/iop_sbusdbg/src/sbus_tty.c index ca6c29bb817..7833fd5975f 100644 --- a/iop/debug/iop_sbusdbg/src/sbus_tty.c +++ b/iop/debug/iop_sbusdbg/src/sbus_tty.c @@ -139,8 +139,10 @@ iop_device_t tty_fsd = (iop_device_ops_t *) &fsd_ops }; -void sprintf_putchar(char **string, int c) +void sprintf_putchar(void *context, int c) { + char **string = (char **)context; + if(c < 0x100) { ((*string)++)[0] = c; } else { (*string)[0] = 0; } }