mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
parent
180b996047
commit
17a65277ce
@ -4355,7 +4355,7 @@ qemuDomainPinVcpuFlags(virDomainPtr dom,
|
|||||||
if (vcpu > (priv->nvcpupids-1)) {
|
if (vcpu > (priv->nvcpupids-1)) {
|
||||||
virReportError(VIR_ERR_INVALID_ARG,
|
virReportError(VIR_ERR_INVALID_ARG,
|
||||||
_("vcpu number out of range %d > %d"),
|
_("vcpu number out of range %d > %d"),
|
||||||
vcpu, priv->nvcpupids);
|
vcpu, priv->nvcpupids - 1);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user