[PATCH 1/7] lib: Fix docs about return value of virDomainGetVcpusFlags()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The return value description stated that 0 is returned in case of success
instead of the count of vCPUs.
---
 src/libvirt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libvirt.c b/src/libvirt.c
index c5221f5..c8728b7 100644
--- a/src/libvirt.c
+++ b/src/libvirt.c
@@ -8957,7 +8957,7 @@ error:
  * virtual CPU limit is queried.  Otherwise, this call queries the
  * current virtual CPU limit.
  *
- * Returns 0 in case of success, -1 in case of failure.
+ * Returns the number of vCPUs in case of success, -1 in case of failure.
  */

 int
-- 
1.8.1.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]