]> mj.ucw.cz Git - pciutils.git/commitdiff
Alpha compilation fixes by Matthew Jacob.
authorMartin Mares <mj@ucw.cz>
Sun, 18 Apr 1999 19:07:16 +0000 (19:07 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 5 May 2006 12:10:06 +0000 (14:10 +0200)
lib/proc.c
lspci.c

index f5ae88303791f0951d061f92ae3a751905fb7fbb..87b06317508b84f3c7804886828e73e2c815c46e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     $Id: proc.c,v 1.1 1999/01/22 21:05:39 mj Exp $
+ *     $Id: proc.c,v 1.2 1999/04/18 19:08:12 mj Exp $
  *
  *     The PCI Library -- Configuration Access via /proc/bus/pci
  *
@@ -107,7 +107,12 @@ proc_scan(struct pci_access *a)
       struct pci_dev *d = pci_alloc_dev(a);
       unsigned int dfn, vend;
 
-      sscanf(buf, "%x %x %x %lx %lx %lx %lx %lx %lx %lx",
+      sscanf(buf,
+#ifdef HAVE_64BIT_ADDRESS
+            "%x %x %x %llx %llx %llx %llx %llx %llx %llx",
+#else
+            "%x %x %x %lx %lx %lx %lx %lx %lx %lx",
+#endif
             &dfn,
             &vend,
             &d->irq,
diff --git a/lspci.c b/lspci.c
index 9c89da2499e2237c3286b113aa0af6192dc29d5e..ab987cde9a3356981fffa0700c966a73a32bee9e 100644 (file)
--- a/lspci.c
+++ b/lspci.c
@@ -1,5 +1,5 @@
 /*
- *     $Id: lspci.c,v 1.23 1999/02/28 20:23:07 mj Exp $
+ *     $Id: lspci.c,v 1.24 1999/04/18 19:07:16 mj Exp $
  *
  *     Linux PCI Utilities -- List All PCI Devices
  *
@@ -292,7 +292,7 @@ show_bases(struct device *d, int cnt)
                  if (buscentric_view)
                    {
                      if (a || z)
-                       printf("%08x%08lx", z, a);
+                       printf("%08x" ADDR_FORMAT, z, a);
                      else
                        printf("<unassigned>");
                      done = 1;