diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2013-06-01 01:02:54 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2013-06-01 01:02:54 +0000 |
commit | 449bbec522fe63a9fcfcdfc85567123df1d2ce11 (patch) | |
tree | 3f0332b013124c322692019ac2cfd484d8e464f3 /sys/arch/octeon | |
parent | f8d660c0d886fefaffab67d0544297382afbe352 (diff) |
make the way of doing debug printfs generic
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r-- | sys/arch/octeon/dev/octeon_pcibus.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/sys/arch/octeon/dev/octeon_pcibus.c b/sys/arch/octeon/dev/octeon_pcibus.c index 483a0288f7b..fbdded63b02 100644 --- a/sys/arch/octeon/dev/octeon_pcibus.c +++ b/sys/arch/octeon/dev/octeon_pcibus.c @@ -1,5 +1,5 @@ -/* $OpenBSD: octeon_pcibus.c,v 1.7 2013/03/21 09:25:48 jasper Exp $ */ -/* $OpenBSD: octeon_pcibus.c,v 1.7 2013/03/21 09:25:48 jasper Exp $ */ +/* $OpenBSD: octeon_pcibus.c,v 1.8 2013/06/01 01:02:53 jasper Exp $ */ +/* $OpenBSD: octeon_pcibus.c,v 1.8 2013/06/01 01:02:53 jasper Exp $ */ /* $NetBSD: bonito_mainbus.c,v 1.11 2008/04/28 20:23:10 martin Exp $ */ /* $NetBSD: bonito_pci.c,v 1.5 2008/04/28 20:23:28 martin Exp $ */ @@ -69,14 +69,10 @@ #include <uvm/uvm_extern.h> -#if 1 -#define OCTEON_PCIBUS_DEBUG -#endif - -#ifdef OCTEON_PCIBUS_DEBUG -#define DEBUG_PRINT(p) printf p +#ifdef DEBUG +#define OCTEON_PCIDEBUG(p) printf p #else -#define DEBUG_PRINT(p) +#define OCTEON_PCIDEBUG(p) #endif #define REG_READ32(addr) (*(volatile uint32_t *)(addr)) @@ -196,9 +192,7 @@ octeon_pcibus_match(struct device *parent, void *vcf, void *aux) extern struct boot_info *octeon_boot_info; if ((octeon_boot_info->config_flags & BOOTINFO_CFG_FLAG_PCI_HOST) == 0) { -#ifdef OCTEON_PCIBUS_DEBUG - printf("%s, no PCI host function detected.\n", __func__); -#endif + OCTEON_PCIDEBUG(("%s, no PCI host function detected.\n", __func__)); return 0; } if (strcmp(aa->aa_name, pcibus_cd.cd_name) == 0) @@ -505,7 +499,7 @@ octeon_pcibus_get_resource_extent(pci_chipset_tag_t pc, int io) ex = NULL; } -#ifdef OCTEON_PCIBUS_DEBUG +#ifdef DEBUG extent_print(ex); #endif |