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/i386/pc386/console/printk_support.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'c/src/lib/libbsp/i386/pc386/console') diff --git a/c/src/lib/libbsp/i386/pc386/console/printk_support.c b/c/src/lib/libbsp/i386/pc386/console/printk_support.c index d6dd569301..d5447adef0 100644 --- a/c/src/lib/libbsp/i386/pc386/console/printk_support.c +++ b/c/src/lib/libbsp/i386/pc386/console/printk_support.c @@ -44,11 +44,6 @@ void BSP_outch(char ch) console_tbl *port = Console_Port_Tbl[BSPPrintkPort]; if (port->pDeviceFns && port->pDeviceFns->deviceWritePolled) { port->pDeviceFns->deviceWritePolled( BSPPrintkPort, ch ); - /* - * No termios so expand the LF to LF/CR. - */ - if ( ch == '\n') - port->pDeviceFns->deviceWritePolled( BSPPrintkPort, '\r' ); } return; } -- cgit v1.2.3