From 90bc5388357d3d196feb400d2529f826ae708d4a Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Mon, 25 Jun 2001 04:52:36 +0000 Subject: Improved debug-ability printfs. now under ifdef PCI_DEBUG --- sys/arch/powerpc/pci/mpcpcibus.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'sys/arch') 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 -- cgit v1.2.3