Skip to content

Commit

Permalink
PM: Add parent information to timing messages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rjwysocki committed Feb 26, 2010
1 parent 971cb7f commit 8cc6b39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/base/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 8cc6b39

Please sign in to comment.