]> mj.ucw.cz Git - pciutils.git/commitdiff
Redhat and Mandrake fixes
authorMartin Mares <mj@ucw.cz>
Sat, 27 Dec 2003 00:23:03 +0000 (00:23 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 5 May 2006 12:18:13 +0000 (14:18 +0200)
* lib/proc.c (proc_setup): Increased path name length limit to 1024.
Thanks for Redhat and Mandrake for inspiration.

* lib/configure: Recognize ppc and ppc64, both have 64-bit addresses.
Grabbed from Redhat (Fedora) patches.
git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-23

ChangeLog
TODO
lib/configure
lib/proc.c

index ffe9dbd7b8b2749061af63f4901dc2d6f759619d..a09efc4afd57315c88a1ccbc5f35f8561d744931 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2003-12-27  Martin Mares  <mj@ucw.cz>
+
+       * lib/proc.c (proc_setup): Increased path name length limit to 1024.
+       Thanks for Redhat and Mandrake for inspiration.
+
+       * lib/configure: Recognize ppc and ppc64, both have 64-bit addresses.
+       Grabbed from Redhat (Fedora) patches.
+
 2003-12-27  Martin Mares  <mj@ucw.cz>
 
        Merged bug fixes from Debian patches:
diff --git a/TODO b/TODO
index dd2bd135302d0c6360b19414d532448c938283ea..9077600764bd861b0aff7fb4f921f15f6f0fc7f7 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,3 +1,5 @@
 - lib: "syscall" access method
 
+- lspci: don't die when non-root tries to dump cardbus data
+
 - pci.ids: "Unknown mass storage controller" -> "Mass storage controller".
index 9ac29839f7b6efb02e2974f5573cc301acfb8dbc..250350f58ad5ca5efad11aa05f90940bb3f623a2 100755 (executable)
@@ -45,7 +45,7 @@ case $sys in
                                                echo >>$c '#define HAVE_PM_INTEL_CONF'
                                                ok=1
                                                ;;
-                               alpha|ia64|sparc|sparc64)
+                               alpha|ia64|sparc|sparc64|ppc|ppc64)
                                                echo >>$c '#define HAVE_64BIT_ADDRESS'
                                                ;;
                esac
index d46e5cba4aba1e4dd0bd3c43c85b3b29a3a86862..9f43fcee2da376fbfa68c98c23a2078cb67e5343 100644 (file)
@@ -178,7 +178,7 @@ proc_setup(struct pci_dev *d, int rw)
 
   if (a->cached_dev != d || a->fd_rw < rw)
     {
-      char buf[256];
+      char buf[1024];
       if (a->fd >= 0)
        close(a->fd);
       if (snprintf(buf, sizeof(buf), "%s/%02x/%02x.%d", a->method_params[PCI_ACCESS_PROC_BUS_PCI],