From 1bc0ad2e12e9e523a9b9043ac47254a0597826bf Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 8 Sep 2017 10:38:46 +0200 Subject: Simplify and unify BSP_output_char The BSP_output_char should output a char and not mingle with high level processing, e.g. '\n' to '\r\n' translation. Move this translation to rtems_putc(). Remove it from all the BSP_output_char implementations. Close #3122. --- c/src/lib/libbsp/powerpc/tqm8xx/console/console.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/tqm8xx/console/console.c') diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/console/console.c b/c/src/lib/libbsp/powerpc/tqm8xx/console/console.c index e109303f18..7810bc1bd1 100644 --- a/c/src/lib/libbsp/powerpc/tqm8xx/console/console.c +++ b/c/src/lib/libbsp/powerpc/tqm8xx/console/console.c @@ -846,14 +846,10 @@ int BSP_output_chan = CONS_CHN_NONE; /* channel used for printk operation */ static void console_debug_putc_onlcr(const char c) { rtems_interrupt_level irq_level; - static char cr_chr = '\r'; if (BSP_output_chan != CONS_CHN_NONE) { rtems_interrupt_disable(irq_level); - if (c == '\n') { - sccPollWrite (BSP_output_chan,&cr_chr,1); - } sccPollWrite (BSP_output_chan,&c,1); rtems_interrupt_enable(irq_level); } -- cgit v1.2.3