summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-09-21 17:55:45 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-09-21 17:55:45 +0000
commit296a980a673fb8ee2d9828dd1849f41a76ae8ffa (patch)
tree562f8089f0fb6f54fb967d433196ed322ceea17e /sys/arch/macppc
parent03f3926613d3d324635bb86e844e68fc70426465 (diff)
Correct some pryntf() usage: get the correct number of arguments in the
correct order.
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r--sys/arch/macppc/macppc/db_disasm.c6
-rw-r--r--sys/arch/macppc/macppc/mainbus.c5
2 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/macppc/macppc/db_disasm.c b/sys/arch/macppc/macppc/db_disasm.c
index 638fb4dd1a0..608048001bb 100644
--- a/sys/arch/macppc/macppc/db_disasm.c
+++ b/sys/arch/macppc/macppc/db_disasm.c
@@ -1,5 +1,5 @@
/* $NetBSD: db_disasm.c,v 1.8 2001/06/12 05:31:44 simonb Exp $ */
-/* $OpenBSD: db_disasm.c,v 1.7 2001/09/09 23:28:16 drahn Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.8 2001/09/21 17:55:39 miod Exp $ */
/*
* Copyright (c) 1996 Dale Rahn. All rights reserved.
*
@@ -590,7 +590,7 @@ disasm_process_field(u_int32_t addr, instr_t instr, char **ppfmt, char **ppoutpu
if (name) {
if (offset == 0) {
pstr += sprintf (pstr, "0x%x (%s)", addr + LI,
- name, offset);
+ name);
} else {
pstr += sprintf (pstr, "0x%x (%s+0x%x)", addr + LI,
name, offset);
@@ -623,7 +623,7 @@ disasm_process_field(u_int32_t addr, instr_t instr, char **ppfmt, char **ppoutpu
if (name) {
if (offset == 0) {
pstr += sprintf (pstr, "0x%x (%s)", addr + BD,
- name, offset);
+ name);
} else {
pstr += sprintf (pstr, "0x%x (%s+0x%x)", addr + BD,
name, offset);
diff --git a/sys/arch/macppc/macppc/mainbus.c b/sys/arch/macppc/macppc/mainbus.c
index 138471a66a8..24b014340ea 100644
--- a/sys/arch/macppc/macppc/mainbus.c
+++ b/sys/arch/macppc/macppc/mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mainbus.c,v 1.1 2001/09/01 15:44:20 drahn Exp $ */
+/* $OpenBSD: mainbus.c,v 1.2 2001/09/21 17:55:39 miod Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -123,7 +123,8 @@ mbattach(parent, self, aux)
if (OF_getprop(node, "device_type", name, sizeof(name)) <= 0)
{
if (OF_getprop(node, "name", name, sizeof(name)) <= 0)
- printf ("name not found on node %x\n");
+ printf ("name not found on node %x\n",
+ node);
continue;
}
if (strcmp(name, "memory-controller") == 0) {