drm/radeon: Print PCI ID of cards when probing
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 6 Feb 2009 05:46:27 +0000 (16:46 +1100)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Mar 2009 04:24:05 +0000 (14:24 +1000)
This is usedul when you have multiple cards to figure out which
one is which minor.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_stub.c

index f51c685011ed75feadda0ad8a75ea7ff1c19674c..45a536b9d7f5e249a9e9e52531862a7adf08b669 100644 (file)
@@ -396,9 +396,9 @@ int drm_get_dev(struct pci_dev *pdev, const struct pci_device_id *ent,
 
        list_add_tail(&dev->driver_item, &driver->device_list);
 
-       DRM_INFO("Initialized %s %d.%d.%d %s on minor %d\n",
+       DRM_INFO("Initialized %s %d.%d.%d %s for %s on minor %d\n",
                 driver->name, driver->major, driver->minor, driver->patchlevel,
-                driver->date, dev->primary->index);
+                driver->date, pci_name(pdev), dev->primary->index);
 
        return 0;