Skip to contentSkip to conversation

vl: Print error when using incorrect backend for debugcon

PATCH Applied Philippe Mathieu-Daudé 3 participants 4 messages Oct 11, 2018 – Oct 19, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vl: Print error when using incorrect backend for debugcon

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.

---
 vl.c | 1 +
 1 file changed, 1 insertion(+)
vl.c +1 -0
index 4e25c78bff..61305b5891 100644
@@ -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);
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Philippe Mathieu-Daudé

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.

Quoted 19 lines
---
 vl.c | 1 +
 1 file changed, 1 insertion(+)
vl.c +1 -1
index 4e25c78bff..61305b5891 100644
@@ -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);
--

2.17.1

#2 lore raw

Cc'ing qemu-trivial@

Quoted 30 lines · Marc-André Lureau
Quoted 6 lines · Philippe Mathieu-Daudé

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.

Quoted 19 lines
---
 vl.c | 1 +
 1 file changed, 1 insertion(+)
vl.c +1 -1
index 4e25c78bff..61305b5891 100644
@@ -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);
--

2.17.1