From: Peter Krempa Date: Fri, 3 Nov 2017 08:31:30 +0000 (+0100) Subject: conf: Fix message when maximum vCPU count is less than current X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=50712e14f40ffdac8a71ce9ef091e4e7bd822585;p=libvirt.git conf: Fix message when maximum vCPU count is less than current 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 --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index a1ca307c43..fffcc8e9da 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -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; }