"Daniel P. Berrange" <[EMAIL PROTECTED]> 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?

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to