diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-04-12 14:37:05 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-04-12 14:38:06 +0200 |
commit | be50969881b97180bf4fc1e2975efd41169e08bb (patch) | |
tree | 8ff92b65bbd0b63b446c8d57ddaa7f56e0eb7405 /bsps/powerpc | |
parent | score: More robust _SMP_Multicast_action() (diff) | |
download | rtems-be50969881b97180bf4fc1e2975efd41169e08bb.tar.bz2 |
bsp/motorola_powerpc: Fix debug output
Update #3122.
Diffstat (limited to 'bsps/powerpc')
-rw-r--r-- | bsps/powerpc/include/bsp/consoleIo.h | 2 | ||||
-rw-r--r-- | bsps/powerpc/motorola_powerpc/console/polled_io.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bsps/powerpc/include/bsp/consoleIo.h b/bsps/powerpc/include/bsp/consoleIo.h index e62c9d143c..015955de72 100644 --- a/bsps/powerpc/include/bsp/consoleIo.h +++ b/bsps/powerpc/include/bsp/consoleIo.h @@ -29,7 +29,7 @@ extern board_memory_map *ptr_mem_map; extern int select_console(ioType t); /* extern int printk(const char *, ...) __attribute__((format(printf, 1, 2))); */ -extern void debug_putc(const unsigned char c); +extern void debug_putc(const char c); extern void debug_putc_onlcr(const char c); extern int debug_getc(void); extern int debug_tstc(void); diff --git a/bsps/powerpc/motorola_powerpc/console/polled_io.c b/bsps/powerpc/motorola_powerpc/console/polled_io.c index ada6083b17..a77eb83f21 100644 --- a/bsps/powerpc/motorola_powerpc/console/polled_io.c +++ b/bsps/powerpc/motorola_powerpc/console/polled_io.c @@ -49,7 +49,7 @@ void pfree(void *); #endif #ifndef __BOOT__ -BSP_output_char_function_type BSP_output_char = debug_putc_onlcr; +BSP_output_char_function_type BSP_output_char = debug_putc; BSP_polling_getchar_function_type BSP_poll_char = NULL; #endif @@ -420,7 +420,7 @@ typedef struct console_io { extern console_io* curIo; -void debug_putc(const u_char c) +void debug_putc(const char c) { curIo->console_io_putc(c); } @@ -526,7 +526,7 @@ void my_puts(const u_char *s) char c; while ( ( c = *s++ ) != '\0' ) { - rtems_putc(c); + debug_putc_onlcr(c); } } |