[libvirt] PATCH: 11/12: virsh support

Jim Meyering jim at meyering.net
Mon Nov 17 18:25:19 UTC 2008


"Daniel P. Berrange" <berrange at redhat.com> wrote:
> This patch adds two node virsh commands for the node device enumeration
> APIs. The only change here is to change the command names to have a shorter
> prefix,  nodedev-list and nodedev-dumpxml
>
> Daniel
>
> diff -r 0136f215fc06 src/virsh.c
...
> +    vshPrint(ctl, "%s\n", virNodeDeviceGetXMLDesc(device, 0));

For non-glibc, you can't print that if it's NULL.
Also, shouldn't the returned XML be freed?




More information about the libvir-list mailing list