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

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



"Daniel P. Berrange" <berrange 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?


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