From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: [PATCH 1/8] PM: Add parent information to timing messages Date: Sun, 24 Jan 2010 00:34:36 +0100 Message-ID: <201001240034.36423.rjw@sisk.pl> References: <201001240033.34253.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201001240033.34253.rjw@sisk.pl> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: LKML Cc: Nigel Cunningham , Greg KH , Linux SCSI , Linux PCI , linux-usb@vger.kernel.org, Jesse Barnes , ACPI Devel Maling List , James Bottomley , pm list , Linus Torvalds , Arjan van de Ven List-Id: linux-pm@vger.kernel.org From: Rafael J. Wysocki Add parent information to the messages printed by the suspend/resume core when initcall_debug is set. Signed-off-by: Rafael J. Wysocki --- 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(); }