summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-01-04 19:13:53 -0500
committerAlex Deucher <alexdeucher@gmail.com>2009-01-04 19:13:53 -0500
commit90ce00a3dbf37833a71db234372695460c8f0342 (patch)
tree280eb5a5809bebeb256b9ffd637faba5701aeebe
parent006d736d890a6b2f1d7eb8ee20ccf467a939516f (diff)
AGP: Print both device and subsytem pci ids for agp
helpful for adding quirks with libpciaccess
-rw-r--r--src/radeon_dri.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/radeon_dri.c b/src/radeon_dri.c
index f3c510b1..596c1c0b 100644
--- a/src/radeon_dri.c
+++ b/src/radeon_dri.c
@@ -866,10 +866,12 @@ static Bool RADEONSetAgpMode(RADEONInfoPtr info, ScreenPtr pScreen)
} /* Don't mention this otherwise, so that people don't get funny ideas */
xf86DrvMsg(pScreen->myNum, X_INFO,
- "[agp] Mode 0x%08lx [AGP 0x%04x/0x%04x; Card 0x%04x/0x%04x]\n",
+ "[agp] Mode 0x%08lx [AGP 0x%04x/0x%04x; Card 0x%04x/0x%04x 0x%04x/0x%04x]\n",
mode, vendor, device,
PCI_DEV_VENDOR_ID(info->PciInfo),
- PCI_DEV_DEVICE_ID(info->PciInfo));
+ PCI_DEV_DEVICE_ID(info->PciInfo),
+ PCI_SUB_VENDOR_ID(info->PciInfo),
+ PCI_SUB_DEVICE_ID(info->PciInfo));
if (drmAgpEnable(info->dri->drmFD, mode) < 0) {
xf86DrvMsg(pScreen->myNum, X_ERROR, "[agp] AGP not enabled\n");