Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hpcmips/dev Set `reg' before using it to print the ...



details:   https://anonhg.NetBSD.org/src/rev/8735eb1ccf6a
branches:  trunk
changeset: 555052:8735eb1ccf6a
user:      he <he%NetBSD.org@localhost>
date:      Fri Nov 07 23:04:15 2003 +0000

description:
Set `reg' before using it to print the unrecognized value.

diffstat:

 sys/arch/hpcmips/dev/plum.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 500cdb96154d -r 8735eb1ccf6a sys/arch/hpcmips/dev/plum.c
--- a/sys/arch/hpcmips/dev/plum.c       Fri Nov 07 22:04:59 2003 +0000
+++ b/sys/arch/hpcmips/dev/plum.c       Fri Nov 07 23:04:15 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: plum.c,v 1.8 2003/09/26 14:30:15 simonb Exp $ */
+/*     $NetBSD: plum.c,v 1.9 2003/11/07 23:04:15 he Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: plum.c,v 1.8 2003/09/26 14:30:15 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: plum.c,v 1.9 2003/11/07 23:04:15 he Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -100,7 +100,7 @@
        sc->sc_csmemt   = ca->ca_csmem.cstag;
        sc->sc_irq      = ca->ca_irq1;
 
-       switch (plum_idcheck(sc->sc_csregt)) {
+       switch (reg = plum_idcheck(sc->sc_csregt)) {
        default:
                printf(": unknown revision %#x\n", reg);
                return;



Home | Main Index | Thread Index | Old Index