summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2017-06-19 19:05:29 +0900
committerAdam Jackson <ajax@redhat.com>2017-06-20 16:31:34 -0400
commite905b19a53f96013c4417bec993a1dea5a3b0a5f (patch)
tree3fde0071f2120bb7283be7550be8c8ab6357f055
parentfb212f2c1bcfb015112aa665dd1f25d9b80f86fc (diff)
xfree86: Print BusID stanza compatible bus IDs for found devices
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@0:1:0) 1002:130f:1043:85cb [...] (--) PCI: (1@0:0:0) 1002:6939:1458:229d [...] Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
-rw-r--r--hw/xfree86/common/xf86pciBus.c4
1 files 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);