From 49637199b9877abbd7e6f729074e7ce9990a0e0f Mon Sep 17 00:00:00 2001 From: anton Date: Tue, 14 Nov 2017 11:58:18 +0000 Subject: Print out the offending data causing pms sync to fail. ok bru@, mpi@ (as part of a larger diff) --- sys/dev/pckbc/pms.c | 8 +++++--- 1 file 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; } -- cgit v1.2.3