Fix error for out of range vcpu in qemuDomainPinVcpuFlags

Changes:
error: invalid argument: vcpu number out of range 2 > 2
to slightly less confusing:
error: invalid argument: vcpu number out of range 2 > 1
This commit is contained in:
Ján Tomko 2014-04-22 14:30:58 +02:00
parent 180b996047
commit 17a65277ce

View File

@ -4355,7 +4355,7 @@ qemuDomainPinVcpuFlags(virDomainPtr dom,
if (vcpu > (priv->nvcpupids-1)) {
virReportError(VIR_ERR_INVALID_ARG,
_("vcpu number out of range %d > %d"),
vcpu, priv->nvcpupids);
vcpu, priv->nvcpupids - 1);
goto cleanup;
}