Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/dev Don't display ipl if the device isn't act...



details:   https://anonhg.NetBSD.org/src/rev/04f060a95516
branches:  trunk
changeset: 523736:04f060a95516
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Fri Mar 15 05:40:01 2002 +0000

description:
Don't display ipl if the device isn't actually attaching.
Add RCSID while here.

diffstat:

 sys/arch/hp300/dev/intio.c |  16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diffs (38 lines):

diff -r 91629508cb41 -r 04f060a95516 sys/arch/hp300/dev/intio.c
--- a/sys/arch/hp300/dev/intio.c        Fri Mar 15 05:36:38 2002 +0000
+++ b/sys/arch/hp300/dev/intio.c        Fri Mar 15 05:40:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intio.c,v 1.7 2001/11/17 23:33:22 gmcgarry Exp $       */
+/*     $NetBSD: intio.c,v 1.8 2002/03/15 05:40:01 gmcgarry Exp $       */
 
 /*-
  * Copyright (c) 1996, 1998, 2001 The NetBSD Foundation, Inc.
@@ -40,6 +40,9 @@
  * Autoconfiguration support for hp300 internal i/o space.
  */
 
+#include <sys/cdefs.h>
+__KERNEL_RCSID(0, "$NetBSD: intio.c,v 1.8 2002/03/15 05:40:01 gmcgarry Exp $");                                                  
+
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/device.h> 
@@ -158,12 +161,13 @@
 {
        struct intio_attach_args *ia = aux;
 
-       if (pnp)
+       if (pnp) {
                printf("%s at %s", ia->ia_modname, pnp);
-       if (ia->ia_addr != 0) {
-               printf(" addr 0x%lx", INTIOBASE + ia->ia_iobase);
-               if (ia->ia_ipl != -1)
-                       printf(" ipl %d", ia->ia_ipl);
+               if (ia->ia_addr != 0) {
+                       printf(" addr 0x%lx", INTIOBASE + ia->ia_iobase);
+                       if (ia->ia_ipl != -1)
+                               printf(" ipl %d", ia->ia_ipl);
+               }
        }
        return (UNCONF);
 }



Home | Main Index | Thread Index | Old Index