PM: Add parent information to timing messages
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 23 Jan 2010 21:03:29 +0000 (22:03 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 26 Feb 2010 19:39:09 +0000 (20:39 +0100)
Add parent information to the messages printed by the suspend/resume
core when initcall_debug is set.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/main.c

index a5142bddef412e079c3083dec37ffeb82c163cd5..6ca5cdf638497e3bfc6a9a9e8974e5f004efe6aa 100644 (file)
@@ -271,8 +271,9 @@ static int pm_noirq_op(struct device *dev,
        ktime_t calltime, delta, rettime;
 
        if (initcall_debug) {
-               pr_info("calling  %s_i+ @ %i\n",
-                               dev_name(dev), task_pid_nr(current));
+               pr_info("calling  %s+ @ %i, parent: %s\n",
+                               dev_name(dev), task_pid_nr(current),
+                               dev->parent ? dev_name(dev->parent) : "none");
                calltime = ktime_get();
        }