[Libvirt-cim] [PATCH 2 of 6] Add domain information store utilities
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Mon Jun 23 21:19:05 UTC 2008
Dan Smith wrote:
> DS> +bool infostore_set_u64(struct infostore_ctx *ctx, const char *key, uint64_t val)
> DS> +{
> DS> + char *sval = NULL;
> DS> +
> DS> + if (asprintf(&sval, "%" PRIu64, val) == -1) {
> DS> + CU_DEBUG("Failed to format u64 string");
> DS> + sval = NULL;
> DS> + goto out;
> DS> + }
> DS> +
> DS> + xpath_set_string(ctx, key, sval);
> DS> + out:
> DS> + free(sval);
> DS> +
> DS> + return false;
> DS> +}
>
> Looks like I forgot to refresh the patch before sending it out. It's
> fixed locally, I promise :)
Cool, then +1 for me. =)
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list