From: Martin Mares Date: Sat, 4 Jul 2009 14:05:56 +0000 (+0200) Subject: lspci: Warn against using -M with the sysfs back-end X-Git-Tag: v3.1.3~3 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=864efa8c4ea34815e18c020adf7aeb91a3ae8b31;p=pciutils.git lspci: Warn against using -M with the sysfs back-end --- 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);