]> git.proxmox.com Git - mirror_qemu.git/commitdiff
vl: Print error when using incorrect backend for debugcon
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 11 Oct 2018 17:12:54 +0000 (19:12 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 19 Oct 2018 12:40:15 +0000 (14:40 +0200)
When using an incorrect backend for the debugcon, QEMU exits silently
without any error indication, which is confusing.
Add a message that the character backend is invalid.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20181011171254.32428-1-philmd@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
vl.c

diff --git a/vl.c b/vl.c
index 4e25c78bff078e1796a8a89bcd8980debbb57210..61305b5891d0368a808155887a178c34ed2e45c9 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -2466,6 +2466,7 @@ static int debugcon_parse(const char *devname)
     QemuOpts *opts;
 
     if (!qemu_chr_new_mux_mon("debugcon", devname)) {
+        error_report("invalid character backend '%s'", devname);
         exit(1);
     }
     opts = qemu_opts_create(qemu_find_opts("device"), "debugcon", 1, NULL);