]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Fix message when maximum vCPU count is less than current
authorPeter Krempa <pkrempa@redhat.com>
Fri, 3 Nov 2017 08:31:30 +0000 (09:31 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 13 Nov 2017 12:41:45 +0000 (13:41 +0100)
Reword the message and drop the numbers (which were reversed) from it
so that it actually makes sense.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1509151

src/conf/domain_conf.c

index a1ca307c432d6066e0c8765a0564e1ace1cad5a5..fffcc8e9da5a864ae70917b72f9f092b41e5d1b2 100644 (file)
@@ -1510,9 +1510,9 @@ virDomainDefSetVcpus(virDomainDefPtr def,
     size_t i;
 
     if (vcpus > def->maxvcpus) {
-        virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
-                       _("maxvcpus must not be less than current vcpus (%u < %zu)"),
-                       vcpus, def->maxvcpus);
+        virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
+                       _("maximum vCPU count must not be less than current "
+                         "vCPU count"));
         return -1;
     }