From f4d417c4a9f33f0015bb19edccf8ff9399b1df97 Mon Sep 17 00:00:00 2001 From: dsl Date: Fri, 7 Nov 2003 19:16:01 +0000 Subject: [PATCH] Add default: and panic() when DEBUG undefined so that 'offset' is not used uninitialised. --- sys/dev/mvme/clmpcc_pcctwo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/mvme/clmpcc_pcctwo.c b/sys/dev/mvme/clmpcc_pcctwo.c index d7e07bcb2cbc..d6fd96ce1ff7 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.6 2003/07/14 15:47:19 lukem Exp $ */ +/* $NetBSD: clmpcc_pcctwo.c,v 1.7 2003/11/07 19:16:01 dsl Exp $ */ /*- * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: clmpcc_pcctwo.c,v 1.6 2003/07/14 15:47:19 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: clmpcc_pcctwo.c,v 1.7 2003/11/07 19:16:01 dsl Exp $"); #include #include @@ -174,12 +174,12 @@ clmpcc_pcctwo_iackhook(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_iackhook"); #endif + panic("clmpcc_pcctwo_iackhook %d", which); } foo = pcc2_reg_read(sys_pcctwo, offset);