Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/isa sync diagnostic printouts in opms_pckbc_pr...
details: https://anonhg.NetBSD.org/src/rev/fa37c3c723ab
branches: trunk
changeset: 472746:fa37c3c723ab
user: drochner <drochner%NetBSD.org@localhost>
date: Thu May 06 09:10:51 1999 +0000
description:
sync diagnostic printouts in opms_pckbc_probe() with dev/pckbc/psm.c:
pmsprobe() -- most notably: put a part inside #ifdef DEBUG
diffstat:
sys/arch/i386/isa/pms.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diffs (38 lines):
diff -r b4ea50d43096 -r fa37c3c723ab sys/arch/i386/isa/pms.c
--- a/sys/arch/i386/isa/pms.c Thu May 06 08:59:21 1999 +0000
+++ b/sys/arch/i386/isa/pms.c Thu May 06 09:10:51 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.43 1999/05/06 09:10:51 drochner 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