Module: xenomai-jki
Branch: for-upstream
Commit: 7e12401113a4f77b137f0861a2072233aea2ea76
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=7e12401113a4f77b137f0861a2072233aea2ea76

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Tue Apr  3 20:55:42 2012 +0200

Append missing newline to rt_[f]puts output

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 src/skins/common/rt_print.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/skins/common/rt_print.c b/src/skins/common/rt_print.c
index 272a4ba..8d0b9cd 100644
--- a/src/skins/common/rt_print.c
+++ b/src/skins/common/rt_print.c
@@ -274,7 +274,12 @@ int rt_printf(const char *format, ...)
 
 int rt_fputs(const char *s, FILE *stream)
 {
-       return print_to_buffer(stream, 0, RT_PRINT_MODE_FWRITE, strlen(s), s);
+       int res;
+
+       res = print_to_buffer(stream, 0, RT_PRINT_MODE_FWRITE, strlen(s), s);
+       if (res < 0)
+               return res;
+       return print_to_buffer(stream, 0, RT_PRINT_MODE_FWRITE, 1, "\n");
 }
 
 int rt_puts(const char *s)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to