diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-30 17:12:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-30 17:12:57 +0000 |
commit | 7914d9c51a42a843888f1087e6acfd552bedf1ea (patch) | |
tree | af015c6388d869584808cc006abdebaa2584bdb1 | |
parent | a8e9888171933705d1e844484a7fa8be1529d66f (diff) |
print ports as 0x%x/%d start/len instead of start-end
-rw-r--r-- | sys/dev/isa/isa.c | 6 | ||||
-rw-r--r-- | sys/dev/isa/pss.c | 12 |
2 files changed, 8 insertions, 10 deletions
diff --git a/sys/dev/isa/isa.c b/sys/dev/isa/isa.c index b59db02608d..778bee68431 100644 --- a/sys/dev/isa/isa.c +++ b/sys/dev/isa/isa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isa.c,v 1.36 1999/02/07 00:54:46 millert Exp $ */ +/* $OpenBSD: isa.c,v 1.37 1999/07/30 17:12:56 deraadt Exp $ */ /* $NetBSD: isa.c,v 1.85 1996/05/14 00:31:04 thorpej Exp $ */ /* @@ -168,11 +168,11 @@ isaprint(aux, isa) if (ia->ia_iosize) printf(" port 0x%x", ia->ia_iobase); if (ia->ia_iosize > 1) - printf("-0x%x", ia->ia_iobase + ia->ia_iosize - 1); + printf("/%d", ia->ia_iosize); if (ia->ia_msize) printf(" iomem 0x%x", ia->ia_maddr); if (ia->ia_msize > 1) - printf("-0x%x", ia->ia_maddr + ia->ia_msize - 1); + printf("/%d", ia->ia_msize); if (ia->ia_irq != IRQUNK) printf(" irq %d", ia->ia_irq); if (ia->ia_drq != DRQUNK) diff --git a/sys/dev/isa/pss.c b/sys/dev/isa/pss.c index 18da81cdb72..8bbdebd898a 100644 --- a/sys/dev/isa/pss.c +++ b/sys/dev/isa/pss.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pss.c,v 1.18 1999/01/07 06:14:49 niklas Exp $ */ +/* $OpenBSD: pss.c,v 1.19 1999/07/30 17:12:56 deraadt Exp $ */ /* $NetBSD: pss.c,v 1.38 1998/01/12 09:43:44 thorpej Exp $ */ /* @@ -1080,9 +1080,8 @@ mpuattach(parent, self, aux) mpuintr, sc, sc->sc_dev.dv_xname); /* XXX might use pssprint func ?? */ - printf(" port 0x%x-0x%x irq %d\n", - sc->sc_iobase, sc->sc_iobase+MIDI_NPORT, - cf->cf_irq); + printf(" port 0x%x/%d irq %d\n", + sc->sc_iobase, MIDI_NPORT, cf->cf_irq); } void @@ -1102,9 +1101,8 @@ pcdattach(parent, self, aux) sc->sc_iobase = iobase; /* XXX might use pssprint func ?? */ - printf(" port 0x%x-0x%x irq %d\n", - sc->sc_iobase, sc->sc_iobase+2, - cf->cf_irq); + printf(" port 0x%x/%d irq %d\n", + sc->sc_iobase, 2, cf->cf_irq); } #endif /* notyet */ |