summaryrefslogtreecommitdiff
path: root/arch/s390
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2020-10-01 03:22:54 +0300
committerVasily Gorbik <gor@linux.ibm.com>2020-10-02 15:40:49 +0300
commit4ec95ed312c4ce877fb04084991754cb8cd33f01 (patch)
tree97fecd2ce2e7c9e01749e25a9adedee0a0328883 /arch/s390
parent100a980c174bed82e0178766809ac664e59ca037 (diff)
downloadlinux-4ec95ed312c4ce877fb04084991754cb8cd33f01.tar.xz
s390/startup: correct early pgm check info formatting
Early sclp console messages are printed in line mode on z/VM and LPAR, but under kvm newlines matter. Add a missing newline between "kernel version" and "Kernel fault". Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/boot/pgm_check_info.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/boot/pgm_check_info.c b/arch/s390/boot/pgm_check_info.c
index d3ab20ec517e..a3c9862bcede 100644
--- a/arch/s390/boot/pgm_check_info.c
+++ b/arch/s390/boot/pgm_check_info.c
@@ -33,7 +33,8 @@ void print_pgm_check_info(void)
char *p;
add_str(buf, "Linux version ");
- strlcat(buf, kernel_version, sizeof(buf));
+ strlcat(buf, kernel_version, sizeof(buf) - 1);
+ strlcat(buf, "\n", sizeof(buf));
sclp_early_printk(buf);
p = add_str(buf, "Kernel fault: interruption code ");