Re: [PATCHv3 3/4] util: Add helper to assign typed params from string

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

 



On 09/06/2012 08:01 AM, Peter Krempa wrote:
> This patch adds a helper to deal with assigning values to
> virTypedParameter structures from strings. The helper parses the value
> from the string and assigns it to the corresponding union value.
> ---
> New in series.

> +    case VIR_TYPED_PARAM_ULLONG:
> +        if (virStrToLong_ull(val, NULL, 10, &param->value.ul) < 0) {
> +            virReportError(VIR_ERR_INVALID_ARG,
> +                           _("Invalid value for field '%s': "
> +                             "expected long long"),

expected unsigned long long

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

Attachment: signature.asc
Description: OpenPGP digital signature

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