diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-18 11:31:33 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-19 07:21:37 +0200 |
commit | a029230aec45c60f7bea6f444161d8e02f47222b (patch) | |
tree | a72893cdc392a653d1f168bd88b316db3129a9d9 /cpukit/libcsupport/src/rtems_putc.c | |
parent | f3b292365ffcd4c95128e568fa114ac55fb0ef6b (diff) |
Add "\n" to "\r\n" translation to rtems_putc()
Update #3122.
Diffstat (limited to 'cpukit/libcsupport/src/rtems_putc.c')
-rw-r--r-- | cpukit/libcsupport/src/rtems_putc.c | 6 |
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); } |