From 8567277ae0d40c640a45912ad56b4c9b84bf2a3a Mon Sep 17 00:00:00 2001 From: enami Date: Sun, 7 Nov 1999 07:44:21 +0000 Subject: [PATCH] Print range of all iospaces or all memspaces if their length aren't zero. --- sys/dev/pcmcia/pcmcia_cis.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/sys/dev/pcmcia/pcmcia_cis.c b/sys/dev/pcmcia/pcmcia_cis.c index 0686ccb2ba57..2fa8dbd03df2 100644 --- a/sys/dev/pcmcia/pcmcia_cis.c +++ b/sys/dev/pcmcia/pcmcia_cis.c @@ -1,4 +1,4 @@ -/* $NetBSD: pcmcia_cis.c,v 1.12 1999/07/11 00:34:37 bad Exp $ */ +/* $NetBSD: pcmcia_cis.c,v 1.13 1999/11/07 07:44:21 enami Exp $ */ #define PCMCIACISDEBUG @@ -540,27 +540,28 @@ pcmcia_print_cis(sc) if (cfe->num_iospace) { printf("; iomask %lx, iospace", cfe->iomask); - for (i = 0; i < cfe->num_iospace; i++) - printf(" %lx", - cfe->iospace[i].start); + for (i = 0; i < cfe->num_iospace; i++) { + printf(" %lx", cfe->iospace[i].start); if (cfe->iospace[i].length) printf("-%lx", cfe->iospace[i].start + - cfe->iospace[i].length - 1); + cfe->iospace[i].length - 1); + } } if (cfe->num_memspace) { printf("; memspace"); - for (i = 0; i < cfe->num_memspace; i++) + for (i = 0; i < cfe->num_memspace; i++) { printf(" %lx", cfe->memspace[i].cardaddr); if (cfe->memspace[i].length) printf("-%lx", cfe->memspace[i].cardaddr + - cfe->memspace[i].length - 1); + cfe->memspace[i].length - 1); if (cfe->memspace[i].hostaddr) printf("@%lx", cfe->memspace[i].hostaddr); + } } if (cfe->maxtwins) printf("; maxtwins %d", cfe->maxtwins);