Masaki Kanno
2008-Aug-26 08:58 UTC
[Xen-devel] [PATCH] Optimize pci_convert_sxp_to_dict method
Hi, This patch optimizes pci_convert_sxp_to_dict method in XendConfig.py. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Best regards, Kan diff -r 2ec019301ad8 tools/python/xen/xend/XendConfig.py --- a/tools/python/xen/xend/XendConfig.py Thu Aug 21 15:18:05 2008 +0100 +++ b/tools/python/xen/xend/XendConfig.py Tue Aug 26 15:01:36 2008 +0900 @@ -1538,9 +1538,10 @@ class XendConfig(dict): pci_dev_info[opt] = val except TypeError: pass - # append uuid for each pci device. - dpci_uuid = pci_dev_info.get(''uuid'', uuid.createString()) - pci_dev_info[''uuid''] = dpci_uuid + # append uuid for each pci device. + dpci_uuid = pci_dev_info.get(''uuid'', uuid.createString()) + pci_dev_info[''uuid''] = dpci_uuidi + pci_devs.append(pci_dev_info) dev_config[''devs''] = pci_devs _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel