# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1250682915 -3600
# Node ID 61c84f478e4d00c562f66ac3b8f0613cb3a4b608
# Parent 2681155bcb8b724184a32f7365a8a6264fb1e09a
xm,xend: Remove tab indents
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
tools/python/xen/util/pci.py | 20 ++++++++++----------
tools/python/xen/xm/main.py | 2 +-
2 files changed, 11 insertions(+), 11 deletions(-)
diff -r 2681155bcb8b -r 61c84f478e4d tools/python/xen/util/pci.py
--- a/tools/python/xen/util/pci.py Wed Aug 19 12:54:43 2009 +0100
+++ b/tools/python/xen/util/pci.py Wed Aug 19 12:55:15 2009 +0100
@@ -252,20 +252,20 @@ def parse_pci_pfunc_vfunc(func_str):
if p < 0 or p > 7:
raise PciDeviceParseError('Invalid physical function in: ' + func_str)
if l == 1:
- # This defaults to linear mapping of physical to virtual functions
+ # This defaults to linear mapping of physical to virtual functions
return (p, p, AUTO_PHP_FUNC)
else:
- v = int(list[1], 16)
+ v = int(list[1], 16)
if v < 0 or v > 7:
raise PciDeviceParseError('Invalid virtual function in: ' +
- func_str)
+ func_str)
return (p, v, MANUAL_PHP_FUNC)
def pci_func_range(start, end):
if end < start:
x = pci_func_range(end, start)
- x.reverse()
- return x
+ x.reverse()
+ return x
return range(start, end + 1)
def pci_pfunc_vfunc_range(orig, a, b):
@@ -338,12 +338,12 @@ def parse_pci_name_extended(pci_dev_str)
if not filter(lambda x: x[1] == 0, func_list):
auto = filter(lambda x: x[2] == AUTO_PHP_FUNC, func_list)
manual = filter(lambda x: x[2] == MANUAL_PHP_FUNC, func_list)
- if not auto:
+ if not auto:
raise PciDeviceParseError('Virtual device does not include '
- 'virtual function 0: ' + pci_dev_str)
- auto.sort(lambda x,y: cmp(x[1], y[1]))
- auto[0] = (auto[0][0], 0, AUTO_PHP_FUNC)
- func_list = auto + manual
+ 'virtual function 0: ' + pci_dev_str)
+ auto.sort(lambda x,y: cmp(x[1], y[1]))
+ auto[0] = (auto[0][0], 0, AUTO_PHP_FUNC)
+ func_list = auto + manual
# For pci attachment and detachment is it important that virtual
# function 0 is done last. This is because is virtual function 0 that
diff -r 2681155bcb8b -r 61c84f478e4d tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py Wed Aug 19 12:54:43 2009 +0100
+++ b/tools/python/xen/xm/main.py Wed Aug 19 12:55:15 2009 +0100
@@ -3148,7 +3148,7 @@ def xm_tmem_shared_auth(args):
(options, params) = getopt.gnu_getopt(args, 'au:A:',
['all','uuid=','auth='])
except getopt.GetoptError, opterr:
err(opterr)
- usage('tmem-shared-auth')
+ usage('tmem-shared-auth')
all = False
for (k, v) in options:
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|