Re: [libvirt] PATCH: 11/12: virsh support

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

 



"Daniel P. Berrange" <berrange@xxxxxxxxxx> 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]