summaryrefslogtreecommitdiffstats
path: root/sys/i386/bios
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/bios')
-rw-r--r--sys/i386/bios/apm.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c
index 3de9481..d97b51b 100644
--- a/sys/i386/bios/apm.c
+++ b/sys/i386/bios/apm.c
@@ -15,7 +15,7 @@
*
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
- * $Id: apm.c,v 1.78 1999/04/16 21:22:05 peter Exp $
+ * $Id: apm.c,v 1.79 1999/04/18 15:10:58 dfr Exp $
*/
#include "opt_devfs.h"
@@ -439,8 +439,13 @@ apm_suspend(int state)
if (sc->initialized) {
error = DEVICE_SUSPEND(root_bus);
+ /*
+ * XXX Shouldn't ignore the error like this, but should
+ * instead fix the newbus code. Until that happens,
+ * I'm doing this to get suspend working again.
+ */
if (error)
- return; /* XXX no error reporting */
+ printf("DEVICE_SUSPEND error %d, ignored\n", error);
apm_execute_hook(hook[APM_HOOK_SUSPEND]);
if (apm_suspend_system(state) == 0)
apm_processevent();
OpenPOWER on IntegriCloud