From 6695e4c0fd9ef05bf6ab8e3402d5bc95b39c4cf3 Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Wed, 25 Aug 2021 11:20:23 +0200 Subject: softmmu/vl: Deprecate the -sdl and -curses option It's not that much complicated to type "-display sdl" or "-display curses", so we should not clutter our main option name space with such simple wrapper options and rather present the users with a concise interface instead. Thus let's deprecate the "-sdl" and "-curses" wrapper options now. Message-Id: <20210825092023.81396-4-thuth@redhat.com> Reviewed-by: Gerd Hoffmann Acked-by: Peter Krempa Signed-off-by: Thomas Huth --- softmmu/vl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'softmmu/vl.c') diff --git a/softmmu/vl.c b/softmmu/vl.c index e9346b4..55ab70e 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -2889,6 +2889,8 @@ void qemu_init(int argc, char **argv, char **envp) dpy.type = DISPLAY_TYPE_NONE; break; case QEMU_OPTION_curses: + warn_report("-curses is deprecated, " + "use -display curses instead."); #ifdef CONFIG_CURSES dpy.type = DISPLAY_TYPE_CURSES; #else @@ -3262,6 +3264,7 @@ void qemu_init(int argc, char **argv, char **envp) "-display ...,window-close=off instead."); break; case QEMU_OPTION_sdl: + warn_report("-sdl is deprecated, use -display sdl instead."); #ifdef CONFIG_SDL dpy.type = DISPLAY_TYPE_SDL; break; -- cgit v1.1