]> git.proxmox.com Git - mirror_qemu.git/commit - hw/s390x/ipl.c
s390/ipl: only print boot menu error if -boot menu=on was specified
authorCollin L. Walling <walling@linux.vnet.ibm.com>
Tue, 27 Feb 2018 19:35:21 +0000 (14:35 -0500)
committerCornelia Huck <cohuck@redhat.com>
Thu, 8 Mar 2018 14:49:23 +0000 (15:49 +0100)
commit5600086976d62e89afbe3ec39915baab0bcca54f
tree13af3dc7d0de8b5b492041422bf9493823bf131d
parentc575fa678bb36f35c9012fa29b104643d9707c58
s390/ipl: only print boot menu error if -boot menu=on was specified

It is possible that certain QEMU configurations may not
create an IPLB (such as when -kernel is provided). In
this case, a misleading error message will be printed
stating that the "boot menu is not supported for this
device type".

To amend this, only print this message iff boot menu=on
was provided on the commandline. Otherwise, return silently.

While we're at it, remove trailing periods from error
messages.

Signed-off-by: Collin L. Walling <walling@linux.vnet.ibm.com>
Message-Id: <1519760121-24594-1-git-send-email-walling@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/ipl.c