diff options
author | anton <anton@cvs.openbsd.org> | 2017-11-14 11:58:18 +0000 |
---|---|---|
committer | anton <anton@cvs.openbsd.org> | 2017-11-14 11:58:18 +0000 |
commit | 49637199b9877abbd7e6f729074e7ce9990a0e0f (patch) | |
tree | 7e53c9f98a6a0e2f6145f50eaa25872337d0b00f | |
parent | 6fab4a4eef740e7abfc6ce189e8b5d5dbe451468 (diff) |
Print out the offending data causing pms sync to fail.
ok bru@, mpi@ (as part of a larger diff)
-rw-r--r-- | sys/dev/pckbc/pms.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/pckbc/pms.c b/sys/dev/pckbc/pms.c index a81417d60e1..15f9454f6e1 100644 --- a/sys/dev/pckbc/pms.c +++ b/sys/dev/pckbc/pms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pms.c,v 1.81 2017/10/28 14:31:29 bru Exp $ */ +/* $OpenBSD: pms.c,v 1.82 2017/11/14 11:58:17 anton Exp $ */ /* $NetBSD: psm.c,v 1.11 2000/06/05 22:20:57 sommerfeld Exp $ */ /*- @@ -850,9 +850,11 @@ pmsinput(void *vsc, int data) sc->packet[sc->inputstate] = data; if (sc->protocol->sync(sc, data)) { #ifdef DIAGNOSTIC - printf("%s: not in sync yet, discard input (state %d)\n", - DEVNAME(sc), sc->inputstate); + printf("%s: not in sync yet, discard input " + "(state = %d, data = %#x)\n", + DEVNAME(sc), sc->inputstate, data); #endif + sc->inputstate = 0; return; } |