Module Name: src
Committed By: tsutsui
Date: Sun Jan 10 09:34:45 UTC 2010
Modified Files:
src/sys/arch/cobalt/stand/boot: boot.c bootinfo.c
Log Message:
Make these compile with -D_DEBUG (use proper printf types).
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/cobalt/stand/boot/boot.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/cobalt/stand/boot/bootinfo.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/cobalt/stand/boot/boot.c
diff -u src/sys/arch/cobalt/stand/boot/boot.c:1.18 src/sys/arch/cobalt/stand/boot/boot.c:1.19
--- src/sys/arch/cobalt/stand/boot/boot.c:1.18 Wed Dec 16 19:01:24 2009
+++ src/sys/arch/cobalt/stand/boot/boot.c Sun Jan 10 09:34:45 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.18 2009/12/16 19:01:24 matt Exp $ */
+/* $NetBSD: boot.c,v 1.19 2010/01/10 09:34:45 tsutsui Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -485,8 +485,8 @@
entry = (void *)marks[MARK_ENTRY];
- DPRINTF(("Bootinfo @ 0x%x\n", bi_addr));
- printf("Starting at 0x%x\n\n", (u_int)entry);
+ DPRINTF(("Bootinfo @ 0x%lx\n", (u_long)bi_addr));
+ printf("Starting at 0x%lx\n\n", (u_long)entry);
(*entry)(memsize, BOOTINFO_MAGIC, bi_addr);
}
Index: src/sys/arch/cobalt/stand/boot/bootinfo.c
diff -u src/sys/arch/cobalt/stand/boot/bootinfo.c:1.6 src/sys/arch/cobalt/stand/boot/bootinfo.c:1.7
--- src/sys/arch/cobalt/stand/boot/bootinfo.c:1.6 Mon Apr 28 20:23:16 2008
+++ src/sys/arch/cobalt/stand/boot/bootinfo.c Sun Jan 10 09:34:45 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: bootinfo.c,v 1.6 2008/04/28 20:23:16 martin Exp $ */
+/* $NetBSD: bootinfo.c,v 1.7 2010/01/10 09:34:45 tsutsui Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -67,8 +67,8 @@
return; /* XXX error? */
if (bootinfo != NULL) {
- DPRINTF(("Adding %d of size %d @0x%x\n",
- type, size, (char*)bi_next));
+ DPRINTF(("Adding %d of size %d @0x%lx\n",
+ type, size, (u_long)bi_next));
bi = new;
bi->next = size;