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 Use -DLIBSA_PRINTF_LONGLONG_SUPPO...



details:   https://anonhg.NetBSD.org/src/rev/bb45b7ca40ef
branches:  trunk
changeset: 750938:bb45b7ca40ef
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Tue Jan 19 15:28:51 2010 +0000

description:
Use -DLIBSA_PRINTF_LONGLONG_SUPPORT -DLIBSA_PRINTF_WIDTH_SUPPORT
in debug printf()s.

diffstat:

 sys/arch/cobalt/stand/boot/Makefile |  5 +++--
 sys/arch/cobalt/stand/boot/tlp.c    |  4 ++--
 sys/arch/cobalt/stand/boot/wd.c     |  6 +++---
 sys/arch/cobalt/stand/boot/wdc.c    |  7 ++++---
 4 files changed, 12 insertions(+), 10 deletions(-)

diffs (86 lines):

diff -r cf5d9418f593 -r bb45b7ca40ef sys/arch/cobalt/stand/boot/Makefile
--- a/sys/arch/cobalt/stand/boot/Makefile       Tue Jan 19 15:26:45 2010 +0000
+++ b/sys/arch/cobalt/stand/boot/Makefile       Tue Jan 19 15:28:51 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.19 2009/03/15 10:47:59 tsutsui Exp $
+#      $NetBSD: Makefile,v 1.20 2010/01/19 15:28:51 tsutsui Exp $
 
 NOMAN= # defined
 
@@ -41,7 +41,8 @@
 
 # -I${.CURDIR}/../.. done by Makefile.inc
 CPPFLAGS+=     -nostdinc -D_STANDALONE -DNO_ABICALLS -D_NO_PROM_DEFINES
-# CPPFLAGS+=   -D_DEBUG
+#CPPFLAGS+=    -D_DEBUG        \
+#              -DLIBSA_PRINTF_LONGLONG_SUPPORT -DLIBSA_PRINTF_WIDTH_SUPPORT
 CPPFLAGS+=     -I${.OBJDIR} -I${S} -I${S}/arch -I${LIBSADIR}
 CPPFLAGS+=     -DCONS_SERIAL -DCOMPORT=${COMPORT}
 CPPFLAGS+=     -DCOMSPEED=${COMSPEED} -DCOMPROBE=${COMPROBE}
diff -r cf5d9418f593 -r bb45b7ca40ef sys/arch/cobalt/stand/boot/tlp.c
--- a/sys/arch/cobalt/stand/boot/tlp.c  Tue Jan 19 15:26:45 2010 +0000
+++ b/sys/arch/cobalt/stand/boot/tlp.c  Tue Jan 19 15:28:51 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tlp.c,v 1.8 2008/04/28 20:23:16 martin Exp $   */
+/*     $NetBSD: tlp.c,v 1.9 2010/01/19 15:28:52 tsutsui Exp $  */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -238,7 +238,7 @@
        en[4] = val;
        en[5] = val >> 8;
 
-       DPRINTF(("tlp: MAC address %x:%x:%x:%x:%x:%x\n",
+       DPRINTF(("tlp: MAC address %02x:%02x:%02x:%02x:%02x:%02x\n",
            en[0], en[1], en[2], en[3], en[4], en[5]));
 
        rxd = &l->rxd[0];
diff -r cf5d9418f593 -r bb45b7ca40ef sys/arch/cobalt/stand/boot/wd.c
--- a/sys/arch/cobalt/stand/boot/wd.c   Tue Jan 19 15:26:45 2010 +0000
+++ b/sys/arch/cobalt/stand/boot/wd.c   Tue Jan 19 15:28:51 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wd.c,v 1.11 2010/01/10 16:20:45 tsutsui Exp $  */
+/*     $NetBSD: wd.c,v 1.12 2010/01/19 15:28:52 tsutsui Exp $  */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -98,8 +98,8 @@
                    wd->sc_params.atap_heads *
                    wd->sc_params.atap_sectors;
        }
-       DPRINTF(("wd->sc_capacity = %ld, wd->sc_capacity28 = %d.\n",
-           (u_long)wd->sc_capacity, wd->sc_capacity28));
+       DPRINTF(("wd->sc_capacity = %" PRId64 ", wd->sc_capacity28 = %d.\n",
+           wd->sc_capacity, wd->sc_capacity28));
 
        return 0;
 }
diff -r cf5d9418f593 -r bb45b7ca40ef sys/arch/cobalt/stand/boot/wdc.c
--- a/sys/arch/cobalt/stand/boot/wdc.c  Tue Jan 19 15:26:45 2010 +0000
+++ b/sys/arch/cobalt/stand/boot/wdc.c  Tue Jan 19 15:28:51 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc.c,v 1.12 2010/01/10 16:20:45 tsutsui Exp $ */
+/*     $NetBSD: wdc.c,v 1.13 2010/01/19 15:28:52 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -34,6 +34,7 @@
 #include <sys/bootblock.h>
 
 #include <lib/libsa/stand.h>
+#include <lib/libkern/libkern.h>
 #include <machine/param.h>
 
 #include "boot.h"
@@ -259,9 +260,9 @@
        struct wdc_channel *chp = &wd->sc_channel;
 
 #if 0
-       DPRINTF(("%s(%d, %x, %ld, %d)\n", __func__,
+       DPRINTF(("%s(%d, %x, %" PRId64 ", %d)\n", __func__,
            wd_c->drive, wd_c->r_command,
-           (u_long)wd_c->r_blkno, wd_c->r_count));
+           wd_c->r_blkno, wd_c->r_count));
 #endif
 
        /* Select drive, head, and addressing mode. */



Home | Main Index | Thread Index | Old Index