]> Devoid-pointer.net GitWeb - omnibook.git/commitdiff
* Print errno if suspend/resume error
authorMathieu Bérard <mathieu.berard@crans.org>
Tue, 17 Oct 2006 23:41:38 +0000 (23:41 +0000)
committerMathieu Bérard <mathieu.berard@crans.org>
Tue, 17 Oct 2006 23:41:38 +0000 (23:41 +0000)
init.c

diff --git a/init.c b/init.c
index 2bdf2433a7503ebb190048120278ef1432a76c7f..ee051cd95867c8f6cf407db8f432cb2d21add6dc 100644 (file)
--- 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;