summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-08-08 17:11:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-08-08 17:11:28 +0000
commit8ff180700f66e734dd1931b3ee8172a664df89f3 (patch)
treee2618466337f3c1dae3dcb32535acc6cc2c85d12 /sys/arch/powerpc
parent777422342a4ecc578cadfbba133a292e33809f05 (diff)
pretty print
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r--sys/arch/powerpc/pci/macobio.c4
-rw-r--r--sys/arch/powerpc/pci/mpcpcibus.c8
2 files changed, 5 insertions, 7 deletions
diff --git a/sys/arch/powerpc/pci/macobio.c b/sys/arch/powerpc/pci/macobio.c
index 5c28ecbb0ca..cab593b5576 100644
--- a/sys/arch/powerpc/pci/macobio.c
+++ b/sys/arch/powerpc/pci/macobio.c
@@ -105,8 +105,6 @@ obio_attach(parent, self, aux)
char name[32];
int need_interrupt_controller = 0;
- printf("obio ver %x", (PCI_PRODUCT(pa->pa_id)));
-
switch (PCI_PRODUCT(pa->pa_id)) {
/* XXX should not use name */
@@ -140,7 +138,7 @@ obio_attach(parent, self, aux)
break;
default:
- printf("obio_attach: unknown obio controller\n");
+ printf(": unknown obio controller\n");
return;
}
sc->sc_node = node;
diff --git a/sys/arch/powerpc/pci/mpcpcibus.c b/sys/arch/powerpc/pci/mpcpcibus.c
index 0e645c67e4e..220b276d3b2 100644
--- a/sys/arch/powerpc/pci/mpcpcibus.c
+++ b/sys/arch/powerpc/pci/mpcpcibus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpcpcibus.c,v 1.19 2000/07/28 13:06:15 rahnds Exp $ */
+/* $OpenBSD: mpcpcibus.c,v 1.20 2000/08/08 17:11:27 deraadt Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -216,7 +216,7 @@ mpcpcibrattach(parent, self, aux)
lcp->lc_pc.pc_intr_establish = mpc_intr_establish;
lcp->lc_pc.pc_intr_disestablish = mpc_intr_disestablish;
- printf(": MPC106, Revision %x.\n", 0);
+ printf(": MPC106, Revision 0x%x\n", 0);
#if 0
mpc_cfg_read_1(lcp, MPC106_PCI_REVID));
mpc_cfg_write_2(lcp, MPC106_PCI_STAT, 0xff80); /* Reset status */
@@ -314,7 +314,7 @@ mpcpcibrattach(parent, self, aux)
lcp->lc_pc.pc_intr_disestablish = mpc_intr_disestablish;
- printf(": %s, Revision %x. ", bridge,
+ printf(": %s, Revision 0x%x, ", bridge,
mpc_cfg_read_1(lcp, MPC106_PCI_REVID));
if (map == 1) {
printf("Using Map A\n");
@@ -492,7 +492,7 @@ mpcpcibrattach(parent, self, aux)
lcp->lc_pc.pc_intr_establish = mpc_intr_establish;
lcp->lc_pc.pc_intr_disestablish = mpc_intr_disestablish;
- printf(": %s, Revision %x. ", compat,
+ printf(": %s, Revision 0x%x\n", compat,
mpc_cfg_read_1(lcp, MPC106_PCI_REVID));
}
break;