]> mj.ucw.cz Git - pciutils.git/commitdiff
Fixed bug in AGP rate reporting.
authorMartin Mares <mj@ucw.cz>
Sun, 24 Mar 2002 12:24:34 +0000 (12:24 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 5 May 2006 12:10:47 +0000 (14:10 +0200)
ChangeLog
lspci.c

index 72706ab48826f6f867dcb990efe31b8b201df2b8..d74e08a6f6fe7b8573a8a011130976f4baf5915c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2002-03-24  Martin Mares  <mj@ucw.cz>
 
+       * lspci.c (format_agp_rate): Fixed AGP rate reporting.
+
        * lib/filter.c (pci_filter_parse_slot): Allow bus 0xff, slot 0x1f and
        function 7.
 
diff --git a/lspci.c b/lspci.c
index 13de9d1b64232eb337ca55738b9e39ea1ef4fed0..6b9b982a444e13a27b7aa6743b924a8c00ae1aa4 100644 (file)
--- a/lspci.c
+++ b/lspci.c
@@ -1,5 +1,5 @@
 /*
- *     $Id: lspci.c,v 1.38 2000/05/20 14:36:02 mj Exp $
+ *     $Id: lspci.c,v 1.39 2002/03/24 12:24:34 mj Exp $
  *
  *     Linux PCI Utilities -- List All PCI Devices
  *
@@ -413,7 +413,7 @@ format_agp_rate(int rate, char *buf)
   char *c = buf;
   int i;
 
-  for(i=0; i<2; i++)
+  for(i=0; i<=2; i++)
     if (rate & (1 << i))
       {
        if (c != buf)