Messages in this thread Patch in this message | | | From | "Rafael J. Wysocki" <> | Subject | [PATCH 3/5] PM: Add debug printouts to async suspend and resume code paths | Date | Sun, 13 Dec 2009 23:40:57 +0100 |
| |
From: Rafael J. Wysocki <rjw@sisk.pl>
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@sisk.pl> --- 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);
| |