mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00: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)) {
|
||||
virReportError(VIR_ERR_INVALID_ARG,
|
||||
_("vcpu number out of range %d > %d"),
|
||||
vcpu, priv->nvcpupids);
|
||||
vcpu, priv->nvcpupids - 1);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user