
# HG changeset patch # User Dan Smith <danms@us.ibm.com> # Date 1207763825 25200 # Node ID f0efb24ba68e89847815b6bf2cfa89dea0330398 # Parent 6cddb842645dcf42c5780c38c3d38785f00f0de4 Fix xml_parse_test to work with new definition of struct vcpu_device ...also print out the 'source' field of network devices Signed-off-by: Dan Smith <danms@us.ibm.com> diff -r 6cddb842645d -r f0efb24ba68e libxkutil/xml_parse_test.c --- a/libxkutil/xml_parse_test.c Wed Apr 09 10:38:58 2008 -0700 +++ b/libxkutil/xml_parse_test.c Wed Apr 09 10:57:05 2008 -0700 @@ -78,6 +78,7 @@ static void print_dev_net(struct virt_de { print_value(d, "Type", dev->dev.net.type); print_value(d, "MAC", dev->dev.net.mac); + print_value(d, "Source", dev->dev.net.source); } static void print_dev_disk(struct virt_device *dev, @@ -93,7 +94,7 @@ static void print_dev_vcpu(struct virt_d static void print_dev_vcpu(struct virt_device *dev, FILE *d) { - print_u32(d, "Virtual CPU", dev->dev.vcpu.number); + print_u32(d, "Virtual CPUs", dev->dev.vcpu.quantity); } static void print_dev_emu(struct virt_device *dev,