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