ChangeSet 1.2181.16.1, 2005/03/16 23:55:56-08:00, [email protected]
PCI: increase the size of the pci.ids strings
If we are going to waste memory, might as well do it right...
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/pci/gen-devlist.c | 2 +-
include/linux/pci.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff -Nru a/drivers/pci/gen-devlist.c b/drivers/pci/gen-devlist.c
--- a/drivers/pci/gen-devlist.c 2005-04-01 15:38:43 -08:00
+++ b/drivers/pci/gen-devlist.c 2005-04-01 15:38:43 -08:00
@@ -7,7 +7,7 @@
#include <stdio.h>
#include <string.h>
-#define MAX_NAME_SIZE 89
+#define MAX_NAME_SIZE 200
static void
pq(FILE *f, const char *c, int len)
diff -Nru a/include/linux/pci.h b/include/linux/pci.h
--- a/include/linux/pci.h 2005-04-01 15:38:43 -08:00
+++ b/include/linux/pci.h 2005-04-01 15:38:43 -08:00
@@ -561,7 +561,7 @@
int rom_attr_enabled; /* has display of the rom attribute been enabled? */
struct bin_attribute *res_attr[DEVICE_COUNT_RESOURCE]; /* sysfs file for resources */
#ifdef CONFIG_PCI_NAMES
-#define PCI_NAME_SIZE 96
+#define PCI_NAME_SIZE 255
#define PCI_NAME_HALF __stringify(43) /* less than half to handle slop */
char pretty_name[PCI_NAME_SIZE]; /* pretty name for users to see */
#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]