zipl/libc: printf: print on linemode and ASCII console

... if the `ENABLE_SCLP_ASCII` macro is defined.

Reviewed-by: Philipp Rudo <prudo@linux.ibm.com>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2020-01-29 14:33:10 +01:00
committed by Jan Höppner
parent f99560f734
commit e51663bbca

View File

@@ -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 */
}
/*