[PATCH 3/5] PM: Add debug printouts to async suspend and resume code paths

From: Rafael J. Wysocki
Date: Sun Dec 13 2009 - 17:43:17 EST


From: Rafael J. Wysocki <rjw@xxxxxxx>

Add pm_dev_dbg() to asynchronous suspend and resume code paths to
make the debugging of async suspend/resume easier.

Signed-off-by: Rafael J. Wysocki <rjw@xxxxxxx>
---
drivers/base/power/main.c | 2 ++
1 file changed, 2 insertions(+)

Index: linux-2.6/drivers/base/power/main.c
===================================================================
--- linux-2.6.orig/drivers/base/power/main.c
+++ linux-2.6/drivers/base/power/main.c
@@ -510,6 +510,7 @@ static void async_resume(void *data, asy
struct device *dev = (struct device *)data;
int error;

+ pm_dev_dbg(dev, pm_transition, "async ");
error = __device_resume(dev, pm_transition, true);
if (error)
pm_dev_err(dev, pm_transition, " async", error);
@@ -791,6 +792,7 @@ static void async_suspend(void *data, as
struct device *dev = (struct device *)data;
int error;

+ pm_dev_dbg(dev, pm_transition, "async ");
error = __device_suspend(dev, pm_transition, true);
if (error) {
pm_dev_err(dev, pm_transition, " async", error);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/