]> mj.ucw.cz Git - pciutils.git/commitdiff
AGP command register display bug fix from Petr Vandrovec.
authorMartin Mares <mj@ucw.cz>
Thu, 17 Jun 1999 17:51:45 +0000 (17:51 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 5 May 2006 12:10:08 +0000 (14:10 +0200)
lspci.c

diff --git a/lspci.c b/lspci.c
index 07862ae33f4f25829c5079eac577d382e111906e..dda6fec304e75d84e65c55ed7056440a4fe33c4a 100644 (file)
--- a/lspci.c
+++ b/lspci.c
@@ -1,5 +1,5 @@
 /*
- *     $Id: lspci.c,v 1.25 1999/04/26 19:45:57 mj Exp $
+ *     $Id: lspci.c,v 1.26 1999/06/17 17:51:45 mj Exp $
  *
  *     Linux PCI Utilities -- List All PCI Devices
  *
@@ -370,6 +370,7 @@ show_agp(struct device *d, int where, int cap)
         (t & PCI_AGP_STATUS_RATE4) ? "4" : "",
         (t & PCI_AGP_STATUS_RATE2) ? "2" : "",
         (t & PCI_AGP_STATUS_RATE1) ? "1" : "");
+  t = get_conf_long(d, where + PCI_AGP_COMMAND);
   printf("\t\tCommand: RQ=%d SBA%c AGP%c 64bit%c FW%c Rate=%s%s%s\n",
         (t & PCI_AGP_COMMAND_RQ_MASK) >> 24U,
         FLAG(t, PCI_AGP_COMMAND_SBA),