[rtems commit] bsp/motorola_powerpc: Fix debug output

Sebastian Huber sebh at rtems.org
Fri Apr 12 12:38:21 UTC 2019


Module:    rtems
Branch:    master
Commit:    be50969881b97180bf4fc1e2975efd41169e08bb
Changeset: http://git.rtems.org/rtems/commit/?id=be50969881b97180bf4fc1e2975efd41169e08bb

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Apr 12 14:37:05 2019 +0200

bsp/motorola_powerpc: Fix debug output

Update #3122.

---

 bsps/powerpc/include/bsp/consoleIo.h              | 2 +-
 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 e62c9d1..015955d 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 ada6083..a77eb83 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);
         }
 }
 




More information about the vc mailing list