mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
error message on vcpupin
* src/virsh.c: patch from Shigeki Sakamoto adding message on vcpupin Daniel
This commit is contained in:
parent
3a50451e84
commit
62ee5d5711
@ -1,3 +1,7 @@
|
||||
Fri Apr 4 13:19:08 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/virsh.c: patch from Shigeki Sakamoto adding message on vcpupin
|
||||
|
||||
Fri Apr 4 10:04:23 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* docs//* po/*: regenerated the documentation and reextracted the
|
||||
|
@ -1741,12 +1741,14 @@ cmdVcpupin(vshControl * ctl, vshCmd * cmd)
|
||||
}
|
||||
|
||||
if (virDomainGetInfo(dom, &info) != 0) {
|
||||
vshError(ctl, FALSE, "%s", _("vcpupin: Invalid vCPU number."));
|
||||
vshError(ctl, FALSE, "%s",
|
||||
_("vcpupin: failed to get domain informations."));
|
||||
virDomainFree(dom);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (vcpu >= info.nrVirtCpu) {
|
||||
vshError(ctl, FALSE, _("vcpupin: Invalid vCPU number."));
|
||||
virDomainFree(dom);
|
||||
return FALSE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user