From: Mathieu BĂ©rard Date: Tue, 17 Oct 2006 23:41:38 +0000 (+0000) Subject: * Print errno if suspend/resume error X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=ac819123e689b94e116710e26a8016c734cafca7;p=omnibook.git * Print errno if suspend/resume error --- diff --git a/init.c b/init.c index 2bdf243..ee051cd 100644 --- a/init.c +++ b/init.c @@ -387,7 +387,7 @@ static int omnibook_suspend(struct platform_device *dev, pm_message_t state) if (feature->suspend) { retval = feature->suspend(feature->io_op); if (!retval) - printk(O_ERR "Unable to suspend the %s feature.\n", feature->name); + printk(O_ERR "Unable to suspend the %s feature (error %i).\n", feature->name, retval); } } return 0; @@ -407,7 +407,7 @@ static int omnibook_resume(struct platform_device *dev) if (feature->resume) { retval = feature->resume(feature->io_op); if (!retval) - printk(O_ERR "Unable to resume the %s feature.\n", feature->name); + printk(O_ERR "Unable to resume the %s feature (error %i).\n", feature->name, retval); } } return 0;