Progif added to class.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Wed, 21 Nov 2007 03:47:38 +0000 (03:47 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Wed, 21 Nov 2007 03:47:38 +0000 (03:47 +0000)
source/systeminfo.py

index 58c2803..ba77629 100755 (executable)
@@ -283,7 +283,7 @@ def get_system_modules( vars = {}, log = sys.stderr):
     pcidevs = pypciscan.get_devices()
 
     for (slot, dev) in pcidevs.iteritems():
-        base = (dev[4] & 0xff00) >> 8
+        base = (dev[4] & 0xff0000) >> 16
         if base not in (PCI_BASE_CLASS_STORAGE,
                         PCI_BASE_CLASS_NETWORK):
             continue