Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/arch/i386/isa pull up rev 1.43 from trunk (requeste...
details: https://anonhg.NetBSD.org/src/rev/f45cb6fa207b
branches: netbsd-1-4
changeset: 469670:f45cb6fa207b
user: cgd <cgd%NetBSD.org@localhost>
date: Fri Nov 05 07:57:29 1999 +0000
description:
pull up rev 1.43 from trunk (requested by drochner):
Disable a diagnostic printout ("opmsprobe: command error" if no mouse
is connected) which is often misunderstood to be an error message.
diffstat:
sys/arch/i386/isa/pms.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diffs (38 lines):
diff -r 2b9a436409ff -r f45cb6fa207b sys/arch/i386/isa/pms.c
--- a/sys/arch/i386/isa/pms.c Fri Nov 05 07:52:15 1999 +0000
+++ b/sys/arch/i386/isa/pms.c Fri Nov 05 07:57:29 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pms.c,v 1.42 1999/01/23 15:07:10 drochner Exp $ */
+/* $NetBSD: pms.c,v 1.42.2.1 1999/11/05 07:57:29 cgd Exp $ */
/*-
* Copyright (c) 1994, 1997 Charles M. Hannum.
@@ -324,20 +324,22 @@
cmd[0] = PMS_RESET;
res = pckbc_poll_cmd(pa->pa_tag, pa->pa_slot, cmd, 1, 2, resp, 1);
if (res) {
- printf("opmsprobe: command error\n");
- return(0);
+#ifdef DEBUG
+ printf("opmsprobe: reset error\n");
+#endif
+ return (0);
}
if (resp[0] != 0xaa) {
- printf("opmsprobe: reset error\n");
- return(0);
+ printf("opmsprobe: reset response 0x%x\n", resp[0]);
+ return (0);
}
/* get type number (0 = mouse) */
if (resp[1] != 0) {
-#ifdef DIAGNOSTIC
+#ifdef DEBUG
printf("opmsprobe: type 0x%x\n", resp[1]);
#endif
- return(0);
+ return (0);
}
return (1);
Home |
Main Index |
Thread Index |
Old Index