From e51663bbca8770c1f7986dac47a59193dbf96010 Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Wed, 29 Jan 2020 14:33:10 +0100 Subject: [PATCH] zipl/libc: printf: print on linemode and ASCII console MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... if the `ENABLE_SCLP_ASCII` macro is defined. Reviewed-by: Philipp Rudo Reviewed-by: Stefan Haberland Signed-off-by: Marc Hartmayer Signed-off-by: Jan Höppner --- zipl/boot/libc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zipl/boot/libc.c b/zipl/boot/libc.c index 26b90a66..02c16f6a 100644 --- a/zipl/boot/libc.c +++ b/zipl/boot/libc.c @@ -406,8 +406,11 @@ void printf(const char *fmt, ...) buf[LINE_LENGTH - 2] = '.'; buf[LINE_LENGTH - 3] = '.'; } - sclp_print(buf); va_end(va); + sclp_print(buf); +#ifdef ENABLE_SCLP_ASCII + sclp_print_ascii(buf); +#endif /* ENABLE_SCLP_ASCII */ } /*