From 0cc97c18acf8fe27a517f6428ed7b09208e874a3 Mon Sep 17 00:00:00 2001 From: gmcgarry Date: Fri, 15 Mar 2002 05:40:01 +0000 Subject: [PATCH] Don't display ipl if the device isn't actually attaching. Add RCSID while here. --- sys/arch/hp300/dev/intio.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/sys/arch/hp300/dev/intio.c b/sys/arch/hp300/dev/intio.c index ca51afcd70ce..bd9a198371d2 100644 --- a/sys/arch/hp300/dev/intio.c +++ b/sys/arch/hp300/dev/intio.c @@ -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 +__KERNEL_RCSID(0, "$NetBSD: intio.c,v 1.8 2002/03/15 05:40:01 gmcgarry Exp $"); + #include #include #include @@ -158,12 +161,13 @@ intioprint(aux, pnp) { 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); }