Skip to content

Commit

Permalink
s390/startup: correct early pgm check info formatting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vasily Gorbik committed Oct 2, 2020
1 parent 100a980 commit 4ec95ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/s390/boot/pgm_check_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ");
Expand Down

0 comments on commit 4ec95ed

Please sign in to comment.