diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-06-25 04:52:36 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-06-25 04:52:36 +0000 |
commit | 90bc5388357d3d196feb400d2529f826ae708d4a (patch) | |
tree | 2fa841847b2e44bc3a52d60524d5cda54ca365e8 /sys/arch | |
parent | ac2d88f8749e9583cf42e6b99e833be0f2585b8a (diff) |
Improved debug-ability printfs. now under ifdef PCI_DEBUG
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/powerpc/pci/mpcpcibus.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/sys/arch/powerpc/pci/mpcpcibus.c b/sys/arch/powerpc/pci/mpcpcibus.c index 990a627d6b0..2c840b94835 100644 --- a/sys/arch/powerpc/pci/mpcpcibus.c +++ b/sys/arch/powerpc/pci/mpcpcibus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpcpcibus.c,v 1.27 2001/06/24 05:18:19 drahn Exp $ */ +/* $OpenBSD: mpcpcibus.c,v 1.28 2001/06/25 04:52:35 drahn Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom @@ -463,14 +463,6 @@ mpcpcibrattach(parent, self, aux) sc->sc_membus_space.bus_size = size; } -#if 0 - printf("membase %x size %x iobase %x size %x\n", - sc->sc_membus_space.bus_base, - sc->sc_membus_space.bus_size, - sc->sc_iobus_space.bus_base, - sc->sc_iobus_space.bus_size); -#endif - addr_offset = 0; for (i = 0; config_offsets[i].compat != NULL; i++) { if (strcmp(config_offsets[i].compat, compat) @@ -488,11 +480,13 @@ mpcpcibrattach(parent, self, aux) " compatible %s\n", compat); return; } -#if 0 - printf(" mem base %x io base %x config addr %x" +#ifdef PCI_DEBUG + printf(" mem base %x sz %x io base %x sz %x\n config addr %x" " config data %x\n", sc->sc_membus_space.bus_base, + sc->sc_membus_space.bus_size, sc->sc_iobus_space.bus_base, + sc->sc_iobus_space.bus_size, addr_offset, data_offset); #endif |