summaryrefslogtreecommitdiffstats
path: root/contrib/pnpinfo
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2002-08-09 22:04:54 +0000
committeriedowse <iedowse@FreeBSD.org>2002-08-09 22:04:54 +0000
commit38f3a61eda216ee1b1dbee108c57e70d7bacfe18 (patch)
treeaf7ecfe436a5464abc981cf30180cd0130c796d3 /contrib/pnpinfo
parent63c5540cd417c4f061419a57bece4561b68d5816 (diff)
downloadFreeBSD-src-38f3a61eda216ee1b1dbee108c57e70d7bacfe18.zip
FreeBSD-src-38f3a61eda216ee1b1dbee108c57e70d7bacfe18.tar.gz
Use the correct loop variable so that we print all IO addresses and
not just 8 copies of the first one. PR: bin/18157 Submitted by: German Tischler <tanis@gaspode.franken.de>
Diffstat (limited to 'contrib/pnpinfo')
-rw-r--r--contrib/pnpinfo/pnpinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pnpinfo/pnpinfo.c b/contrib/pnpinfo/pnpinfo.c
index 1646ef2..dde7402 100644
--- a/contrib/pnpinfo/pnpinfo.c
+++ b/contrib/pnpinfo/pnpinfo.c
@@ -534,8 +534,8 @@ dump_resdata(u_char *data, int csn)
printf("\nLogical device #%d\n", pnp_read(PNP_SET_LDN) );
printf("IO: ");
for (j=0; j<8; j++)
- printf(" 0x%02x%02x", pnp_read(PNP_IO_BASE_HIGH(i)),
- pnp_read(PNP_IO_BASE_LOW(i)));
+ printf(" 0x%02x%02x", pnp_read(PNP_IO_BASE_HIGH(j)),
+ pnp_read(PNP_IO_BASE_LOW(j)));
printf("\nIRQ %d %d\n",
pnp_read(PNP_IRQ_LEVEL(0)), pnp_read(PNP_IRQ_LEVEL(1)) );
printf("DMA %d %d\n",
OpenPOWER on IntegriCloud