From b158245614ddebff7295ef75273630c52ed0e711 Mon Sep 17 00:00:00 2001 From: he Date: Sun, 9 Nov 2003 14:26:15 +0000 Subject: [PATCH] Fix another instance where `offset' might have been used uninitialized, by adding a non-DEBUG default: and a panic(). --- sys/dev/mvme/clmpcc_pcctwo.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/mvme/clmpcc_pcctwo.c b/sys/dev/mvme/clmpcc_pcctwo.c index d6fd96ce1ff7..fc08c3349f42 100644 --- a/sys/dev/mvme/clmpcc_pcctwo.c +++ b/sys/dev/mvme/clmpcc_pcctwo.c @@ -1,4 +1,4 @@ -/* $NetBSD: clmpcc_pcctwo.c,v 1.7 2003/11/07 19:16:01 dsl Exp $ */ +/* $NetBSD: clmpcc_pcctwo.c,v 1.8 2003/11/09 14:26:15 he Exp $ */ /*- * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: clmpcc_pcctwo.c,v 1.7 2003/11/07 19:16:01 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: clmpcc_pcctwo.c,v 1.8 2003/11/09 14:26:15 he Exp $"); #include #include @@ -209,12 +209,13 @@ clmpcc_pcctwo_consiackhook(sc, which) case CLMPCC_IACK_TX: offset = PCC2REG_SCC_TX_PIACK; break; -#ifdef DEBUG default: +#ifdef DEBUG printf("%s: Invalid IACK number '%d'\n", sc->sc_dev.dv_xname, which); panic("clmpcc_pcctwo_consiackhook"); #endif + panic("clmpcc_pcctwo_iackhook %d", which); } #ifdef MVME68K