[PATCH xserver 1/4] xfree86: Print BusID stanza compatible bus IDs for found devices

Michel Dänzer michel at daenzer.net
Mon Jun 19 10:05:29 UTC 2017


From: Michel Dänzer <michel.daenzer at amd.com>

The PCI domain has to be specified like this:

 "PCI:<bus>@<domain>:<device>:<function>"

Example before:

 (--) PCI:*(0:0:1:0) 1002:130f:1043:85cb [...]
 (--) PCI: (0:1:0:0) 1002:6939:1458:229d [...]

after:

 (--) PCI:*(0 at 0:1:0) 1002:130f:1043:85cb [...]
 (--) PCI: (1 at 0:0:0) 1002:6939:1458:229d [...]

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 hw/xfree86/common/xf86pciBus.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c
index 012ca08d2..ed82744b4 100644
--- a/hw/xfree86/common/xf86pciBus.c
+++ b/hw/xfree86/common/xf86pciBus.c
@@ -155,8 +155,8 @@ xf86PciProbe(void)
         if (xf86IsPrimaryPci(info))
             prim = "*";
 
-        xf86Msg(X_PROBED, "PCI:%s(%u:%u:%u:%u) %04x:%04x:%04x:%04x ", prim,
-                info->domain, info->bus, info->dev, info->func,
+        xf86Msg(X_PROBED, "PCI:%s(%u@%u:%u:%u) %04x:%04x:%04x:%04x ", prim,
+                info->bus, info->domain, info->dev, info->func,
                 info->vendor_id, info->device_id,
                 info->subvendor_id, info->subdevice_id);
 
-- 
2.11.0



More information about the xorg-devel mailing list