[PATCH] pm: print name of failed suspend function
authorAndrew Morton <akpm@osdl.org>
Thu, 23 Mar 2006 09:38:34 +0000 (01:38 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 14 Apr 2006 18:41:25 +0000 (11:41 -0700)
commit026694920579590c73b5c56705d543568ed5ad41
tree1c3ad318fe65c5812dd33008af8e77389ee31c46
parent372254018eb1b65ee69210d11686bfc65c8d84db
[PATCH] pm: print name of failed suspend function

Print more diagnostic info to help identify the source of power management
suspend failures.

Example:

usb_hcd_pci_suspend(): pci_set_power_state+0x0/0x1af() returns -22
pci_device_suspend(): usb_hcd_pci_suspend+0x0/0x11b() returns -22
suspend_device(): pci_device_suspend+0x0/0x34() returns -22

Work-in-progress.  It needs lots more suspend_report_result() calls sprinkled
everywhere.

Cc: Patrick Mochel <mochel@digitalimplant.org>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Nigel Cunningham <nigel@suspend2.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/power/suspend.c
drivers/pci/pci-driver.c
drivers/pci/pci.c
drivers/usb/core/hcd-pci.c
include/linux/pm.h