summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2009-07-04 16:05:56 +0200
committerMartin Mares <mj@ucw.cz>2009-07-04 16:05:56 +0200
commit864efa8c4ea34815e18c020adf7aeb91a3ae8b31 (patch)
treecb3ad489367db29b52ec6dd57286f4def45b2b00
parentd00975720cdb4837623c065cb1781f61740a975c (diff)
downloadpciutils-864efa8c4ea34815e18c020adf7aeb91a3ae8b31.tar.gz
lspci: Warn against using -M with the sysfs back-end
-rw-r--r--ls-map.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ls-map.c b/ls-map.c
index c812f50..3044d6f 100644
--- 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);