lkml.org 
[lkml]   [2009]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/5] PM: Add debug printouts to async suspend and resume code paths
Date
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);


\
 
 \ /
  Last update: 2009-12-13 23:45    [W:0.045 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site