From 1bc0ad2e12e9e523a9b9043ac47254a0597826bf Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 8 Sep 2017 10:38:46 +0200 Subject: Simplify and unify BSP_output_char The BSP_output_char should output a char and not mingle with high level processing, e.g. '\n' to '\r\n' translation. Move this translation to rtems_putc(). Remove it from all the BSP_output_char implementations. Close #3122. --- cpukit/libcsupport/src/putk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/libcsupport/src/putk.c') diff --git a/cpukit/libcsupport/src/putk.c b/cpukit/libcsupport/src/putk.c index 76fa8b0040..5a84a4be0b 100644 --- a/cpukit/libcsupport/src/putk.c +++ b/cpukit/libcsupport/src/putk.c @@ -29,7 +29,7 @@ int putk(const char *s) int len_out = 0; for (p=s ; *p ; p++, len_out++ ) - BSP_output_char(*p); - BSP_output_char('\n'); + rtems_putc(*p); + rtems_putc('\n'); return len_out + 1; } -- cgit v1.2.3