[rtems commit] Add "\n" to "\r\n" translation to rtems_putc()
Sebastian Huber
sebh at rtems.org
Tue Sep 19 05:21:53 UTC 2017
Module: rtems
Branch: master
Commit: a029230aec45c60f7bea6f444161d8e02f47222b
Changeset: http://git.rtems.org/rtems/commit/?id=a029230aec45c60f7bea6f444161d8e02f47222b
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Sep 18 11:31:33 2017 +0200
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(-)
diff --git a/cpukit/libcsupport/src/rtems_putc.c b/cpukit/libcsupport/src/rtems_putc.c
index c078f7b..784f768 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);
}
More information about the vc
mailing list