summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-18 11:31:33 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-19 07:21:37 +0200
commita029230aec45c60f7bea6f444161d8e02f47222b (patch)
treea72893cdc392a653d1f168bd88b316db3129a9d9 /cpukit
parentbsps: Clock_driver_support_install_isr() (diff)
downloadrtems-a029230aec45c60f7bea6f444161d8e02f47222b.tar.bz2
Add "\n" to "\r\n" translation to rtems_putc()
Update #3122.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libcsupport/src/rtems_putc.c6
1 files changed, 5 insertions, 1 deletions
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);
}