Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/stand/ofwboot Fix debug build.



details:   https://anonhg.NetBSD.org/src/rev/fa100a5824ff
branches:  trunk
changeset: 765208:fa100a5824ff
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Sat May 21 16:32:00 2011 +0000

description:
Fix debug build.

diffstat:

 sys/arch/sparc/stand/ofwboot/loadfile_machdep.c |  5 +++--
 sys/arch/sparc/stand/ofwboot/ofdev.c            |  8 ++++----
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r 011bbaa3465b -r fa100a5824ff sys/arch/sparc/stand/ofwboot/loadfile_machdep.c
--- a/sys/arch/sparc/stand/ofwboot/loadfile_machdep.c   Sat May 21 15:50:42 2011 +0000
+++ b/sys/arch/sparc/stand/ofwboot/loadfile_machdep.c   Sat May 21 16:32:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: loadfile_machdep.c,v 1.9 2011/05/21 15:50:42 tsutsui Exp $     */
+/*     $NetBSD: loadfile_machdep.c,v 1.10 2011/05/21 16:32:00 nakayama Exp $   */
 
 /*-
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -251,7 +251,8 @@
                        if (itlb_slot >= itlb_slot_max)
                                panic("mmu_mapin: out of itlb_slots");
 
-                       DPRINTF(("mmu_mapin: %p:%p.%p\n", va, hi(pa), lo(pa)));
+                       DPRINTF(("mmu_mapin: 0x%lx:0x%x.0x%x\n", va,
+                           hi(pa), lo(pa)));
 
                        data = TSB_DATA(0,              /* global */
                                        PGSZ_4M,        /* 4mb page */
diff -r 011bbaa3465b -r fa100a5824ff sys/arch/sparc/stand/ofwboot/ofdev.c
--- a/sys/arch/sparc/stand/ofwboot/ofdev.c      Sat May 21 15:50:42 2011 +0000
+++ b/sys/arch/sparc/stand/ofwboot/ofdev.c      Sat May 21 16:32:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofdev.c,v 1.30 2011/05/21 15:50:42 tsutsui Exp $       */
+/*     $NetBSD: ofdev.c,v 1.31 2011/05/21 16:32:00 nakayama Exp $      */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -126,7 +126,7 @@
                                sizeof devtype) < 0)
                        devtype[0] = 0;
        }
-       DPRINTF(("filename: not found\n",lp));
+       DPRINTF(("filename: not found\n"));
        return 0;
 }
 
@@ -501,12 +501,12 @@
                } else {
                        part = partition ? partition - 'a' : 0;
                        ofdev.partoff = label.d_partitions[part].p_offset;
-                       DPRINTF(("devopen: setting partition %d offset %x\n",
+                       DPRINTF(("devopen: setting partition %d offset %lx\n",
                               part, ofdev.partoff));
                        if (label.d_partitions[part].p_fstype == FS_RAID) {
                                ofdev.partoff += RF_PROTECTED_SECTORS;
                                DPRINTF(("devopen: found RAID partition, "
-                                   "adjusting offset to %x\n", ofdev.partoff));
+                                   "adjusting offset to %lx\n", ofdev.partoff));
                        }
                }
 



Home | Main Index | Thread Index | Old Index