# HG changeset patch
# User Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
# Date 1244174547 10800
# Node ID e4eedf59bb5883b8814ed0569fabb27f71516494
# Parent 5037ddc96cee2ed47f6f91eeb7fc634a3c01d212
Signed-off-by: Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
diff -r 5037ddc96cee -r e4eedf59bb58 libxkutil/xmlgen.c
--- a/libxkutil/xmlgen.c Fri Jun 05 00:52:35 2009 -0300
+++ b/libxkutil/xmlgen.c Fri Jun 05 01:02:27 2009 -0300
@@ -60,6 +60,8 @@
if (tmp == NULL)
return XML_ERROR;
xmlNewProp(tmp, BAD_CAST "dev", BAD_CAST dev->virtual_dev);
+ if (dev->bus_type)
+ xmlNewProp(tmp, BAD_CAST "bus", BAD_CAST dev->bus_type);
if (dev->readonly)
xmlNewChild(disk, NULL, BAD_CAST "readonly", NULL);