X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ls-map.c;h=c3ef54b7b1f59f60ac891a11157bc403f35becf0;hb=8b122188dfd404984eb360e8d876682fe7eb1613;hp=c812f503d63a30b211d9df7ed88851a5d244b551;hpb=c7a349934e4b9160d5788c60f168bae1f0b6dd9d;p=pciutils.git diff --git a/ls-map.c b/ls-map.c index c812f50..c3ef54b 100644 --- a/ls-map.c +++ b/ls-map.c @@ -38,7 +38,7 @@ map_bridge(struct bus_info *bi, struct device *d, int np, int ns, int nl) b->func = p->func; b->first = get_conf_byte(d, ns); b->last = get_conf_byte(d, nl); - printf("## %02x.%02x:%d is a bridge from %02x to %02x-%02x\n", + printf("## %02x:%02x.%d is a bridge from %02x to %02x-%02x\n", p->bus, p->dev, p->func, b->this, b->first, b->last); if (b->this != p->bus) printf("!!! Bridge points to invalid primary bus.\n"); @@ -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);