public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/base/power: be more verbose in device_pm_add()
@ 2010-06-04 12:17 Daniel Mack
  2010-06-04 16:45 ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Mack @ 2010-06-04 12:17 UTC (permalink / raw)
  To: linux-kernel
  Cc: Daniel Mack, Rafael J. Wysocki, Len Brown, Greg Kroah-Hartman,
	Magnus Damm, Alan Stern, Randy Dunlap, linux-pm

If a parentless device was added during a PM transaction, developers
might want to know which device caused the troube. Hence, output the
kobject's name in this case.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Len Brown <len.brown@intel.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Magnus Damm <damm@igel.co.jp>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Cc: linux-pm@lists.linux-foundation.org
---
 drivers/base/power/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index 941fcb8..9e9fe6a 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -98,7 +98,7 @@ void device_pm_add(struct device *dev)
 		 * transition is in progress in order to avoid leaving them
 		 * unhandled down the road
 		 */
-		dev_WARN(dev, "Parentless device registered during a PM transaction\n");
+		dev_WARN(dev, "Parentless device registered during a PM transaction: %s\n", kobject_name(&dev->kobj));
 	}
 
 	list_add_tail(&dev->power.entry, &dpm_list);
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-06-04 17:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-04 12:17 [PATCH] drivers/base/power: be more verbose in device_pm_add() Daniel Mack
2010-06-04 16:45 ` Greg KH
2010-06-04 16:50   ` Daniel Mack
2010-06-04 17:03     ` Greg KH
2010-06-04 17:07       ` Daniel Mack
2010-06-04 17:12         ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox