From 4c03b53e430bb7dd38aee48b2219fa1e37cb9abe Mon Sep 17 00:00:00 2001 From: dyoung Date: Tue, 17 Apr 2007 03:33:48 +0000 Subject: [PATCH] In admsw_intr(), print any events we do not expect. --- sys/arch/mips/adm5120/dev/if_admsw.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/arch/mips/adm5120/dev/if_admsw.c b/sys/arch/mips/adm5120/dev/if_admsw.c index 59db549d5f1f..0f2792374c17 100644 --- a/sys/arch/mips/adm5120/dev/if_admsw.c +++ b/sys/arch/mips/adm5120/dev/if_admsw.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_admsw.c,v 1.1 2007/03/20 08:52:01 dyoung Exp $ */ +/* $NetBSD: if_admsw.c,v 1.2 2007/04/17 03:33:48 dyoung Exp $ */ /*- * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko. @@ -76,7 +76,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_admsw.c,v 1.1 2007/03/20 08:52:01 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_admsw.c,v 1.2 2007/04/17 03:33:48 dyoung Exp $"); #include "bpfilter.h" @@ -807,9 +807,8 @@ admsw_intr(void *arg) char buf[64]; pending = REG_READ(ADMSW_INT_ST); - /* printf("admsw_intr: %x\n",pending); */ - if ((pending & ~(ADMSW_INTR_RHD|ADMSW_INTR_RLD|ADMSW_INTR_SHD|ADMSW_INTR_SLD)) != 0) { + if ((pending & ~(ADMSW_INTR_RHD|ADMSW_INTR_RLD|ADMSW_INTR_SHD|ADMSW_INTR_SLD|ADMSW_INTR_W1TE|ADMSW_INTR_W0TE)) != 0) { printf("%s: pending=%s\n", __func__, bitmask_snprintf(pending, ADMSW_INT_FMT, buf, sizeof(buf))); }