Skip to content

Commit

Permalink
[PATCH] reduce pnp syslog spam
Browse files Browse the repository at this point in the history
Make some normal code paths in PNP stop issuing syslog spam.  Since PNP
issues calls regardless of device capablities, it's no surprise when some
of those devices don't support those calls!

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Adam Belay <ambx1@neo.rr.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
David Brownell authored and Linus Torvalds committed Mar 17, 2007
1 parent db98e0b commit 48670a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/pnp/manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ int pnp_auto_config_dev(struct pnp_dev *dev)
return -EINVAL;

if(!pnp_can_configure(dev)) {
pnp_info("Device %s does not support resource configuration.", dev->dev.bus_id);
pnp_dbg("Device %s does not support resource configuration.", dev->dev.bus_id);
return -ENODEV;
}

Expand Down Expand Up @@ -482,7 +482,7 @@ int pnp_auto_config_dev(struct pnp_dev *dev)
int pnp_start_dev(struct pnp_dev *dev)
{
if (!pnp_can_write(dev)) {
pnp_info("Device %s does not support activation.", dev->dev.bus_id);
pnp_dbg("Device %s does not support activation.", dev->dev.bus_id);
return -EINVAL;
}

Expand All @@ -506,7 +506,7 @@ int pnp_start_dev(struct pnp_dev *dev)
int pnp_stop_dev(struct pnp_dev *dev)
{
if (!pnp_can_disable(dev)) {
pnp_info("Device %s does not support disabling.", dev->dev.bus_id);
pnp_dbg("Device %s does not support disabling.", dev->dev.bus_id);
return -EINVAL;
}
if (dev->protocol->disable(dev)<0) {
Expand Down

0 comments on commit 48670a1

Please sign in to comment.