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

Eric Blake eblake at redhat.com
Mon Apr 15 22:29:49 UTC 2013


On 04/15/2013 09:11 AM, Peter Krempa wrote:
> 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(-)

ACK.

> 
> 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
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130415/d88834de/attachment-0001.sig>


More information about the libvir-list mailing list