1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-02-09 13:57:27 +03:00

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
This commit is contained in:
Peter Krempa 2017-11-03 09:31:30 +01:00
parent acc15025ed
commit 50712e14f4

View 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;
}