commit | af67ee9264c135f4b213b4bc1a3871c4e9ec7da3 | [log] [tgz] |
---|---|---|
author | Eduardo Habkost <ehabkost@redhat.com> | Tue Mar 18 16:29:24 2014 -0300 |
committer | Michael S. Tsirkin <mst@redhat.com> | Wed Mar 19 13:24:29 2014 +0200 |
tree | 791568596d5e8df4a4ed05f6a6f377a78ab4d5a8 | |
parent | d2995916ea262bca40788f275c7f53f1c0a0b606 [diff] [blame] |
vl.c: Use MAX_CPUMASK_BITS macro instead of hardcoded constant Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
diff --git a/vl.c b/vl.c index c8a5bfa..23e1dbd 100644 --- a/vl.c +++ b/vl.c
@@ -1413,7 +1413,7 @@ max_cpus = smp_cpus; } - if (max_cpus > 255) { + if (max_cpus > MAX_CPUMASK_BITS) { fprintf(stderr, "Unsupported number of maxcpus\n"); exit(1); }