[Libvirt-cim] [PATCH 2 of 6] Add domain information store utilities
Dan Smith
danms at us.ibm.com
Mon Jun 23 20:40:12 UTC 2008
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 :)
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20080623/5b3e9f84/attachment.sig>
More information about the Libvirt-cim
mailing list