git://git.onelab.eu
/
pypcilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
147cef1
)
python2.3 treats 0xffffffff as a negative number. inconsistent with pcimap.
author
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Tue, 18 Mar 2008 19:18:54 +0000
(19:18 +0000)
committer
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Tue, 18 Mar 2008 19:18:54 +0000
(19:18 +0000)
pypcimap.py
patch
|
blob
|
history
diff --git
a/pypcimap.py
b/pypcimap.py
index
504ac92
..
0c83fa8
100644
(file)
--- a/
pypcimap.py
+++ b/
pypcimap.py
@@
-48,10
+48,10
@@
class PCIMap:
"""Returns a list of candidate modules for the PCI device specified in tuple"""
ret = []
for i in self.list:
"""Returns a list of candidate modules for the PCI device specified in tuple"""
ret = []
for i in self.list:
- if ((i[1] == tuple[0] or i[1] == 0xffffffff) and
- (i[2] == tuple[1] or i[2] == 0xffffffff) and
- (i[3] == tuple[2] or i[3] == 0xffffffff) and
- (i[4] == tuple[3] or i[4] == 0xffffffff) and
+ if ((i[1] == tuple[0] or i[1] == 0xffffffff
L
) and
+ (i[2] == tuple[1] or i[2] == 0xffffffff
L
) and
+ (i[3] == tuple[2] or i[3] == 0xffffffff
L
) and
+ (i[4] == tuple[3] or i[4] == 0xffffffff
L
) and
(i[5] == (tuple[4] & i[6]))):
ret.append(i[0])
for i in greylist:
(i[5] == (tuple[4] & i[6]))):
ret.append(i[0])
for i in greylist: