vl: Print error when using incorrect backend for debugcon
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
@@ -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
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.Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Quoted 19 lines
--- vl.c | 1 + 1 file changed, 1 insertion(+)vl.c +1
-1@@ -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
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.Signed-off-by Philippe Mathieu-Daudé <[email protected]>Reviewed-by Marc-André Lureau <[email protected]>Quoted 19 lines
--- vl.c | 1 + 1 file changed, 1 insertion(+)vl.c +1
-1@@ -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
Markus Armbruster
AppliedQuoted 5 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.Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Queued, thanks!