Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/cobalt/stand/boot Make these compile with -D_DEBUG ...
details: https://anonhg.NetBSD.org/src/rev/47a20ec09abb
branches: trunk
changeset: 750671:47a20ec09abb
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Jan 10 09:34:45 2010 +0000
description:
Make these compile with -D_DEBUG (use proper printf types).
diffstat:
sys/arch/cobalt/stand/boot/boot.c | 6 +++---
sys/arch/cobalt/stand/boot/bootinfo.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r ba232d3239c4 -r 47a20ec09abb sys/arch/cobalt/stand/boot/boot.c
--- a/sys/arch/cobalt/stand/boot/boot.c Sun Jan 10 09:08:23 2010 +0000
+++ b/sys/arch/cobalt/stand/boot/boot.c Sun Jan 10 09:34:45 2010 +0000
@@ -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);
}
diff -r ba232d3239c4 -r 47a20ec09abb sys/arch/cobalt/stand/boot/bootinfo.c
--- a/sys/arch/cobalt/stand/boot/bootinfo.c Sun Jan 10 09:08:23 2010 +0000
+++ b/sys/arch/cobalt/stand/boot/bootinfo.c Sun Jan 10 09:34:45 2010 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index