]> mj.ucw.cz Git - pciutils.git/commitdiff
Fixed bug in printing of 64-bit prefetchable memory windows.
authorMartin Mares <mj@ucw.cz>
Sun, 30 Jul 2006 11:44:02 +0000 (13:44 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 30 Jul 2006 11:44:02 +0000 (13:44 +0200)
ChangeLog
lspci.c

index 0deda1f037574b6a3c11d5eb4ca0dc3da9f2bf45..d1ecaf40f2fafdea8e68b311015237fcf090511b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-07-30  Martin Mares  <mj@ucw.cz>
 
+       * lspci.c (show_htype1): Fixed bug in printing of 64-bit prefetchable
+       memory windows. Fix by Petr Vandrovec.
+
        * maint/release.pm: Exclude .git directory from releases.
 
        * lib/i386-ports.c, lib/i386-io-*: Report failures during port access
diff --git a/lspci.c b/lspci.c
index 0d7c3a8bd63015adea3bd15d81abd1e565d8c671..e231303d23c01bc1b57d41c04d9c62f3b3672986 100644 (file)
--- a/lspci.c
+++ b/lspci.c
@@ -1487,7 +1487,7 @@ show_htype1(struct device *d)
                   get_conf_long(d, PCI_PREF_BASE_UPPER32),
                   pref_base,
                   get_conf_long(d, PCI_PREF_LIMIT_UPPER32),
-                  pref_limit);
+                  pref_limit + 0xfffff);
        }
     }