lkml.org 
[lkml]   [2010]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/8] PM: Add parent information to timing messages
    Date
    From: Rafael J. Wysocki <rjw@sisk.pl>

    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 | 5 +++--
    1 file changed, 3 insertions(+), 2 deletions(-)

    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
    @@ -271,8 +271,9 @@ static int pm_noirq_op(struct device *de
    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();
    }



    \
     
     \ /
      Last update: 2010-01-24 00:47    [W:0.030 / U:0.112 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site