diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-10-20 11:22:42 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 10:16:44 -0700 |
commit | 5abd935661e01289ba143c3b2c1ba300c65bcc5f (patch) | |
tree | 11161db54ba24e5c46841fef1fdd4f6bb5d4a1e8 /drivers/base | |
parent | 07681215975e05a1454b0afdeef07deb0db626ee (diff) | |
download | kernel_samsung_smdk4412-5abd935661e01289ba143c3b2c1ba300c65bcc5f.zip kernel_samsung_smdk4412-5abd935661e01289ba143c3b2c1ba300c65bcc5f.tar.gz kernel_samsung_smdk4412-5abd935661e01289ba143c3b2c1ba300c65bcc5f.tar.bz2 |
driver core: Display error codes when class suspend fails
Aid diagnostics by printing the error code from failed suspends, which
doesn't otherwise seem to get displayed.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/sys.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/base/sys.c b/drivers/base/sys.c index 9354dc1..1667aaf 100644 --- a/drivers/base/sys.c +++ b/drivers/base/sys.c @@ -432,13 +432,13 @@ int sysdev_suspend(pm_message_t state) /* resume current sysdev */ cls_driver: drv = NULL; - printk(KERN_ERR "Class suspend failed for %s\n", - kobject_name(&sysdev->kobj)); + printk(KERN_ERR "Class suspend failed for %s: %d\n", + kobject_name(&sysdev->kobj), ret); aux_driver: if (drv) - printk(KERN_ERR "Class driver suspend failed for %s\n", - kobject_name(&sysdev->kobj)); + printk(KERN_ERR "Class driver suspend failed for %s: %d\n", + kobject_name(&sysdev->kobj), ret); list_for_each_entry(err_drv, &cls->drivers, entry) { if (err_drv == drv) break; |