diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2010-09-29 20:24:23 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2010-10-01 07:59:34 +0200 |
commit | c1f3f2819667a238585c65bba96c8b16af39a442 (patch) | |
tree | 18cdfe75cc3a77bed489f11bcf7407957c8bd2df /drivers/pnp/core.c | |
parent | Linux 2.6.36-rc6 (diff) | |
download | linux-c1f3f2819667a238585c65bba96c8b16af39a442.tar.xz linux-c1f3f2819667a238585c65bba96c8b16af39a442.zip |
PNP: log PNP resources, as we do for PCI
ACPI devices are often involved in address space conflicts with PCI devices,
so I think it's worth logging the resources they use. Otherwise we have to
depend on lspnp or groping around in sysfs to find them.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp/core.c')
-rw-r--r-- | drivers/pnp/core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pnp/core.c b/drivers/pnp/core.c index 88b3cde52596..53a8f33e649c 100644 --- a/drivers/pnp/core.c +++ b/drivers/pnp/core.c @@ -194,8 +194,9 @@ int pnp_add_device(struct pnp_dev *dev) for (id = dev->id; id; id = id->next) len += scnprintf(buf + len, sizeof(buf) - len, " %s", id->id); - pnp_dbg(&dev->dev, "%s device, IDs%s (%s)\n", - dev->protocol->name, buf, dev->active ? "active" : "disabled"); + dev_printk(KERN_DEBUG, &dev->dev, "%s device, IDs%s (%s)\n", + dev->protocol->name, buf, + dev->active ? "active" : "disabled"); return 0; } |