diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-10-20 14:22:42 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:16:44 -0400 |
commit | 5abd935661e01289ba143c3b2c1ba300c65bcc5f (patch) | |
tree | 11161db54ba24e5c46841fef1fdd4f6bb5d4a1e8 /drivers/base | |
parent | 07681215975e05a1454b0afdeef07deb0db626ee (diff) |
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 9354dc10a363..1667aaf4fde6 100644 --- a/drivers/base/sys.c +++ b/drivers/base/sys.c | |||
@@ -432,13 +432,13 @@ int sysdev_suspend(pm_message_t state) | |||
432 | /* resume current sysdev */ | 432 | /* resume current sysdev */ |
433 | cls_driver: | 433 | cls_driver: |
434 | drv = NULL; | 434 | drv = NULL; |
435 | printk(KERN_ERR "Class suspend failed for %s\n", | 435 | printk(KERN_ERR "Class suspend failed for %s: %d\n", |
436 | kobject_name(&sysdev->kobj)); | 436 | kobject_name(&sysdev->kobj), ret); |
437 | 437 | ||
438 | aux_driver: | 438 | aux_driver: |
439 | if (drv) | 439 | if (drv) |
440 | printk(KERN_ERR "Class driver suspend failed for %s\n", | 440 | printk(KERN_ERR "Class driver suspend failed for %s: %d\n", |
441 | kobject_name(&sysdev->kobj)); | 441 | kobject_name(&sysdev->kobj), ret); |
442 | list_for_each_entry(err_drv, &cls->drivers, entry) { | 442 | list_for_each_entry(err_drv, &cls->drivers, entry) { |
443 | if (err_drv == drv) | 443 | if (err_drv == drv) |
444 | break; | 444 | break; |