From: Daniel P. Berrangé <[email protected]> Expand the text a bit to make the new syntax more explicit and point users to the man page for further info.
Reported-by: Peter Maydell <[email protected]> Signed-off-by: Daniel P. Berrangé <[email protected]> Reviewed-by: Peter Maydell <[email protected]> Message-ID: <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]> --- system/vl.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/system/vl.c b/system/vl.c index 1b22a358d23..9bd7664b85c 100644 --- a/system/vl.c +++ b/system/vl.c @@ -3238,8 +3238,13 @@ void qemu_init(int argc, char **argv) default_monitor = 0; break; case QEMU_OPTION_mon: - warn_report_once("'-mon' is deprecated, use '-object' with " - "'monitor-hmp' or 'monitor-qmp' types instead"); + warn_report_once( + "'-mon' is deprecated. Switch to either " + "'-object monitor-hmp,id=ID,chardev=CHR-ID' or " + "'-object monitor-qmp,id=ID,chardev=CHR-ID' instead. " + "See '-object' docs in the QEMU manual for further " + "configuration guidance: " + "https://www.qemu.org/docs/master/system/invocation.html"); if (!qemu_opts_parse_noisily(qemu_find_opts("mon"), optarg, true)) { exit(1); -- 2.53.0
