summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Weingartner <weingart@cvs.openbsd.org>2007-09-13 06:58:48 +0000
committerTobias Weingartner <weingart@cvs.openbsd.org>2007-09-13 06:58:48 +0000
commitce1a6612df9790b0fcc42a6fb7921e2821b0dc42 (patch)
treec3d017c56e8771f6de90f74738a52042196b7b64
parent6c07cceeee82e02871361e8515956da1c7947789 (diff)
Don't bother bitching if APM does not exist. Pleanty
enough systems today do not have apm. Also, the existance of apm is given on the probe line, absence means it ain't there.
-rw-r--r--sys/arch/i386/stand/libsa/apmprobe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/stand/libsa/apmprobe.c b/sys/arch/i386/stand/libsa/apmprobe.c
index 645fd5260ed..ce09fa388d5 100644
--- a/sys/arch/i386/stand/libsa/apmprobe.c
+++ b/sys/arch/i386/stand/libsa/apmprobe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apmprobe.c,v 1.14 2005/11/14 23:50:26 martin Exp $ */
+/* $OpenBSD: apmprobe.c,v 1.15 2007/09/13 06:58:47 weingart Exp $ */
/*
* Copyright (c) 1997-2000 Michael Shalayeff
@@ -171,7 +171,9 @@ apmprobe(void)
apm_disconnect();
if (apm_connect(&ai) != 0) {
+#ifdef DEBUG
printf("\napm: connect error\n");
+#endif
return;
}
#ifdef DEBUG