]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
lspci: Warn against using -M with the sysfs back-end
authorMartin Mares <mj@ucw.cz>
Sat, 4 Jul 2009 14:05:56 +0000 (16:05 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 4 Jul 2009 14:05:56 +0000 (16:05 +0200)
ls-map.c

index c812f503d63a30b211d9df7ed88851a5d244b551..3044d6fdb3887a25d6c0a5f20a9614c532ac946c 100644 (file)
--- a/ls-map.c
+++ b/ls-map.c
@@ -164,6 +164,7 @@ void
 map_the_bus(void)
 {
   if (pacc->method == PCI_ACCESS_PROC_BUS_PCI ||
+      pacc->method == PCI_ACCESS_SYS_BUS_PCI ||
       pacc->method == PCI_ACCESS_DUMP)
     printf("WARNING: Bus mapping can be reliable only with direct hardware access enabled.\n\n");
   bus_info = xmalloc(sizeof(struct bus_info) * 256);