diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2017-02-02 10:33:20 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-02-08 14:13:20 +0100 |
commit | 02407baaebdef86571e4e939ddbd3b32d9b5d389 (patch) | |
tree | 3389599af369faa22c2731947bde7714cad1ba66 /arch/s390/kernel/als.c | |
parent | d5ab7a34f9bbad54f89b812e6b0d2d898f9433db (diff) | |
download | op-kernel-dev-02407baaebdef86571e4e939ddbd3b32d9b5d389.zip op-kernel-dev-02407baaebdef86571e4e939ddbd3b32d9b5d389.tar.gz |
s390/sclp: don't add new lines to each printed string
The early vt220 sclp printk code added an extra new line to each
printed multi-line text. If used for the early sclp console this will
lead to numerous extra new lines. Therefore get rid of this semantic
and require that each to be printed string contains a line feed
character if a new line is wanted.
Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/als.c')
-rw-r--r-- | arch/s390/kernel/als.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/s390/kernel/als.c b/arch/s390/kernel/als.c index 0b3a06f..14769eb 100644 --- a/arch/s390/kernel/als.c +++ b/arch/s390/kernel/als.c @@ -41,6 +41,7 @@ static void __init print_machine_type(void) get_cpu_id(&id); u16_to_hex(type_str, id.machine); strcat(mach_str, type_str); + strcat(mach_str, "\n"); sclp_early_printk(mach_str); } @@ -79,6 +80,7 @@ static void __init print_missing_facilities(void) * z/VM adds a four character prefix. */ if (strlen(als_str) > 70) { + strcat(als_str, "\n"); sclp_early_printk(als_str); *als_str = '\0'; } @@ -87,13 +89,14 @@ static void __init print_missing_facilities(void) first = 0; } } + strcat(als_str, "\n"); sclp_early_printk(als_str); - sclp_early_printk("See Principles of Operations for facility bits"); + sclp_early_printk("See Principles of Operations for facility bits\n"); } static void __init facility_mismatch(void) { - sclp_early_printk("The Linux kernel requires more recent processor hardware"); + sclp_early_printk("The Linux kernel requires more recent processor hardware\n"); print_machine_type(); print_missing_facilities(); disabled_wait(0x8badcccc); |