From f29d4450428fe07e9d6b0655cef2e59bfa0b2ea5 Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Tue, 20 Feb 2018 16:01:32 +0100 Subject: Document --rtc-td-hack, --localtime and --startdate as deprecated These options have been marked in a comment in qemu-options.hx as deprecated in 2009 already (see commit 1ed2fc1fa35fadc0d6), but we never informed the users about these deprecations. Let's catch up on that omission now. Signed-off-by: Thomas Huth Message-Id: <1519138892-12836-1-git-send-email-thuth@redhat.com> [Fix messages. - Paolo] Signed-off-by: Paolo Bonzini --- vl.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vl.c') diff --git a/vl.c b/vl.c index 6e4f1a2de2..e648bed0e1 100644 --- a/vl.c +++ b/vl.c @@ -3406,6 +3406,8 @@ int main(int argc, char **argv, char **envp) break; case QEMU_OPTION_localtime: rtc_utc = 0; + warn_report("This option is deprecated, " + "use '-rtc base=localtime' instead."); break; case QEMU_OPTION_vga: vga_model = optarg; @@ -3665,6 +3667,8 @@ int main(int argc, char **argv, char **envp) }; qdev_prop_register_global(&slew_lost_ticks); + warn_report("This option is deprecated, " + "use '-rtc driftfix=slew' instead."); break; } case QEMU_OPTION_acpitable: @@ -3866,6 +3870,7 @@ int main(int argc, char **argv, char **envp) */ break; case QEMU_OPTION_startdate: + warn_report("This option is deprecated, use '-rtc base=' instead."); configure_rtc_date_offset(optarg, 1); break; case QEMU_OPTION_rtc: -- cgit v1.2.1