bsp/motorola_powerpc: Fix debug output

Update #3122.
This commit is contained in:
Sebastian Huber
2019-04-12 14:37:05 +02:00
parent ef9d20f691
commit be50969881
2 changed files with 4 additions and 4 deletions

View File

@@ -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);

View File

@@ -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);
}
}