summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1999-08-14 03:19:43 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1999-08-14 03:19:43 +0000
commit6fd7fc32f8eea5a539acf76324fd08a9a1f4d021 (patch)
treecf901b03ace94628ff3cf35ac40901676430ff33
parentffc41e1df10f84ee3a66ec24737c7d5cef928a81 (diff)
proper debugging ifdefs
-rw-r--r--sys/arch/hppa/hppa/machdep.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c
index 37253f2b5f3..23076e38d5d 100644
--- a/sys/arch/hppa/hppa/machdep.c
+++ b/sys/arch/hppa/hppa/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.11 1999/07/21 07:37:20 mickey Exp $ */
+/* $OpenBSD: machdep.c,v 1.12 1999/08/14 03:19:42 mickey Exp $ */
/*
* Copyright (c) 1998,1999 Michael Shalayeff
@@ -245,7 +245,7 @@ hppa_init(start)
*/
if ((pdcerr = pdc_call((iodcio_t)pdc, 0, PDC_CACHE, PDC_CACHE_DFLT,
&pdc_cache)) < 0) {
-#ifdef DIAGNOSTIC
+#ifdef DEBUG
printf("Warning: PDC_CACHE call Ret'd %d\n", pdcerr);
#endif
}
@@ -396,7 +396,7 @@ hppa_init(start)
panic("cannot allocate msgbuf");
msgbufmapped = 1;
-#ifdef DEBUG
+#ifdef PMAPDEBUG
printf("mem: %x+%x, %x\n", physmem, resvmem, totalphysmem);
#endif
/* Turn on the HW TLB assist */
@@ -411,8 +411,10 @@ hppa_init(start)
printf("Warning: HW TLB init failed (%d), disabled\n",
pdcerr);
} else
+#ifdef PMAPDEBUG
printf("HW TLB(%d entries at 0x%x) initialized (%d)\n",
hptsize / sizeof(struct hpt_entry), hpt, pdcerr);
+#endif
}
/*