From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ttj6t-0001Tm-QG for qemu-devel@nongnu.org; Fri, 11 Jan 2013 13:13:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ttj6p-00031l-OL for qemu-devel@nongnu.org; Fri, 11 Jan 2013 13:13:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ttj6p-00031Q-H6 for qemu-devel@nongnu.org; Fri, 11 Jan 2013 13:13:39 -0500 From: Eduardo Habkost Date: Fri, 11 Jan 2013 16:15:00 -0200 Message-Id: <1357928108-21066-3-git-send-email-ehabkost@redhat.com> In-Reply-To: <1357928108-21066-1-git-send-email-ehabkost@redhat.com> References: <1357928108-21066-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 02/10] vl.c: Abort on unknown -numa option type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: libvir-list@redhat.com, Chegu Vinod , Anthony Liguori Instead of silently ignoring them, abort in case an invalid -numa option is provided. Signed-off-by: Eduardo Habkost --- vl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vl.c b/vl.c index 93fde36..042cc7f 100644 --- a/vl.c +++ b/vl.c @@ -1101,6 +1101,9 @@ static void numa_add(const char *optarg) bitmap_set(node_cpumask[nodenr], value, endvalue-value+1); } nb_numa_nodes++; + } else { + fprintf(stderr, "Invalid -numa option: %s\n", option); + exit(1); } } -- 1.7.11.7