From a029230aec45c60f7bea6f444161d8e02f47222b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 18 Sep 2017 11:31:33 +0200 Subject: Add "\n" to "\r\n" translation to rtems_putc() Update #3122. --- cpukit/libcsupport/src/rtems_putc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cpukit') diff --git a/cpukit/libcsupport/src/rtems_putc.c b/cpukit/libcsupport/src/rtems_putc.c index c078f7b302..784f768f1b 100644 --- a/cpukit/libcsupport/src/rtems_putc.c +++ b/cpukit/libcsupport/src/rtems_putc.c @@ -6,7 +6,7 @@ */ /* - * Copyright (c) 2012 embedded brains GmbH. All rights reserved. + * Copyright (c) 2012, 2017 embedded brains GmbH. All rights reserved. * * embedded brains GmbH * Obere Lagerstr. 30 @@ -27,5 +27,9 @@ void rtems_putc(char c) { + if (c == '\n') { + (*BSP_output_char)('\r'); + } + (*BSP_output_char)(c); } -- cgit v1.2.3