EISA: Log device resources in dmesg
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 15 Apr 2013 20:34:07 +0000 (14:34 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 15 Apr 2013 20:34:07 +0000 (14:34 -0600)
Note the resources consumed by EISA devices in dmesg, similar to what
we already do for PCI and PNP devices.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/eisa/eisa-bus.c

index d0c50b4..272a3ec 100644 (file)
@@ -286,6 +286,7 @@ static int __init eisa_request_resources(struct eisa_root_device *root,
                        edev->res[i].flags = IORESOURCE_IO | IORESOURCE_BUSY;
                }
 
+               dev_printk(KERN_DEBUG, &edev->dev, "%pR\n", &edev->res[i]);
                if (request_resource(root->res, &edev->res[i]))
                        goto failed;
        }