mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
0768121597
commit
5abd935661
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue