From ac819123e689b94e116710e26a8016c734cafca7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathieu=20B=C3=A9rard?= Date: Tue, 17 Oct 2006 23:41:38 +0000 Subject: [PATCH] * Print errno if suspend/resume error --- init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.43.5