From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrVc1-0003qp-Fl for qemu-devel@nongnu.org; Wed, 28 Oct 2015 14:38:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrVbv-0004wi-La for qemu-devel@nongnu.org; Wed, 28 Oct 2015 14:38:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrVbv-0004wY-GC for qemu-devel@nongnu.org; Wed, 28 Oct 2015 14:38:11 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 2FED99134E for ; Wed, 28 Oct 2015 18:38:11 +0000 (UTC) From: Eduardo Habkost Date: Wed, 28 Oct 2015 16:37:02 -0200 Message-Id: <1446057425-16891-14-git-send-email-ehabkost@redhat.com> In-Reply-To: <1446057425-16891-1-git-send-email-ehabkost@redhat.com> References: <1446057425-16891-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH v2 13/16] vl.c: Reword -machine help error messages List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Andrew Jones , Markus Armbruster * Use "\n" consistently in both error messages. * Simplify error message. Signed-off-by: Eduardo Habkost --- vl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vl.c b/vl.c index 61e474b..55521a0 100644 --- a/vl.c +++ b/vl.c @@ -2634,8 +2634,8 @@ static gint machine_class_cmp(gconstpointer a, gconstpointer b) return mc; } if (name && !is_help_option(name)) { - error_report("unsupported machine type"); - error_printf("Use -machine help to list supported machines!\n"); + error_report("unsupported machine type\n" + "Use -machine help to list supported machines"); } else { printf("Supported machines are:\n"); machines = g_slist_sort(machines, machine_class_cmp); @@ -3994,8 +3994,8 @@ int main(int argc, char **argv, char **envp) } if (machine_class == NULL) { - error_report("No machine specified, and there is no default.\n" - "Use -machine help to list supported machines!"); + error_report("no machine specified\n" + "Use -machine help to list supported machines"); exit(1); } -- 2.1.0