diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2013-02-04 16:27:47 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-02-04 14:38:33 -0600 |
commit | 12e53a9d59c8cb272a423e1db036324579a3c697 (patch) | |
tree | 8bb70b8bdd0e68bcea3d1b7eb247c31fef920c95 /vl.c | |
parent | 8f302cb0900ba7f38b62da5759f07b77483d6fb9 (diff) |
vl.c: Abort on unknown -numa option type
Abort in case an invalid -numa option is provided, instead of silently
ignoring it.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1293,6 +1293,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); } } |