From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsBIE-0001Oz-IW for qemu-devel@nongnu.org; Fri, 30 Oct 2015 11:08:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZsBIB-0003Ik-ED for qemu-devel@nongnu.org; Fri, 30 Oct 2015 11:08:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsBIB-0003Ia-A2 for qemu-devel@nongnu.org; Fri, 30 Oct 2015 11:08:35 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id E6AC096E2 for ; Fri, 30 Oct 2015 15:08:34 +0000 (UTC) From: Eduardo Habkost Date: Fri, 30 Oct 2015 13:08:00 -0200 Message-Id: <1446217682-24421-10-git-send-email-ehabkost@redhat.com> In-Reply-To: <1446217682-24421-1-git-send-email-ehabkost@redhat.com> References: <1446217682-24421-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH v3 09/11] vl.c: Simplify "ignoring deprecated option" warnings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Andrew Jones , Markus Armbruster Simplify warnings about deprecated options by rewriting them as "warning: ignoring deprecated option". Suggested-by: Andrew Jones Signed-off-by: Eduardo Habkost --- Changes series v2 -> v3: * No need to mention option name in error message, as it is already present in the prefix printed by error_report() * Suggested-by: Markus Armbruster --- vl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vl.c b/vl.c index 2d48e22..b6ba369 100644 --- a/vl.c +++ b/vl.c @@ -3657,8 +3657,7 @@ int main(int argc, char **argv, char **envp) qemu_opts_parse_noisily(olist, "accel=tcg", false); break; case QEMU_OPTION_no_kvm_pit: { - error_report("warning: KVM PIT can no longer be disabled " - "separately"); + error_report("warning: ignoring deprecated option"); break; } case QEMU_OPTION_no_kvm_pit_reinjection: { @@ -3795,8 +3794,7 @@ int main(int argc, char **argv, char **envp) } break; case QEMU_OPTION_tdf: - error_report("warning: user space PIT time drift fix " - "is no longer supported"); + error_report("warning: ignoring deprecated option"); break; case QEMU_OPTION_name: opts = qemu_opts_parse_noisily(qemu_find_opts("name"), -- 2.1.0