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

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



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 redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


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