xend: pass-through: fix regression in the ordering of the output of xm pci list

changeset "python: Remove tab indents" (19937:e845326ae203)
introduces a minor regression in the multi-function PCI pass-through
code by causing bogus return values from the sort function
which is used to order the output of "xm pci list".

Signed-off-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
Keir Fraser committed 2009-07-21 14:26:52 +01:00
1 parent a9c036a84d
commit 03c274f00c
1 file changed
+1 -1
+1 -1
View File
@@ -2234,7 +2234,7 @@ def xm_pci_list(args):
vdevfn = AUTO_PHP_SLOT
else:
vdevfn = x['vdevfn']
return (vdevfn << 32) | \
return (vdevfn << 32) | \
PCI_BDF(x['domain'], x['bus'], x['slot'], x['func'])
devs.sort(None, f)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.