Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/dev dev_t is uint64_t; use PRIx64 to print it...



details:   https://anonhg.NetBSD.org/src/rev/2cefafd15409
branches:  trunk
changeset: 767719:2cefafd15409
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Thu Jul 28 03:42:20 2011 +0000

description:
dev_t is uint64_t; use PRIx64 to print it.  Fix DEBUG build.

diffstat:

 sys/arch/hp300/dev/ppi.c |  14 +++++++-------
 sys/arch/hp300/dev/rd.c  |   6 +++---
 2 files changed, 10 insertions(+), 10 deletions(-)

diffs (90 lines):

diff -r 8c575233884e -r 2cefafd15409 sys/arch/hp300/dev/ppi.c
--- a/sys/arch/hp300/dev/ppi.c  Thu Jul 28 03:21:14 2011 +0000
+++ b/sys/arch/hp300/dev/ppi.c  Thu Jul 28 03:42:20 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ppi.c,v 1.42 2008/06/18 12:25:13 tsutsui Exp $ */
+/*     $NetBSD: ppi.c,v 1.43 2011/07/28 03:42:20 uebayasi Exp $        */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ppi.c,v 1.42 2008/06/18 12:25:13 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ppi.c,v 1.43 2011/07/28 03:42:20 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -206,7 +206,7 @@
 
 #ifdef DEBUG
        if (ppidebug & PDB_FOLLOW)
-               printf("ppiopen(%x, %x): flags %x\n",
+               printf("ppiopen(%"PRIx64", %x): flags %x\n",
                       dev, flags, sc->sc_flags);
 #endif
        if (sc->sc_flags & PPIF_OPEN)
@@ -226,7 +226,7 @@
 
 #ifdef DEBUG
        if (ppidebug & PDB_FOLLOW)
-               printf("ppiclose(%x, %x): flags %x\n",
+               printf("ppiclose(%"PRIx64", %x): flags %x\n",
                       dev, flags, sc->sc_flags);
 #endif
        sc->sc_flags &= ~PPIF_OPEN;
@@ -265,7 +265,7 @@
 
 #ifdef DEBUG
        if (ppidebug & PDB_FOLLOW)
-               printf("ppiread(%x, %p)\n", dev, uio);
+               printf("ppiread(%"PRIx64", %p)\n", dev, uio);
 #endif
        return ppirw(dev, uio);
 }
@@ -276,7 +276,7 @@
 
 #ifdef DEBUG
        if (ppidebug & PDB_FOLLOW)
-               printf("ppiwrite(%x, %p)\n", dev, uio);
+               printf("ppiwrite(%"PRIx64", %p)\n", dev, uio);
 #endif
        return ppirw(dev, uio);
 }
@@ -299,7 +299,7 @@
 
 #ifdef DEBUG
        if (ppidebug & (PDB_FOLLOW|PDB_IO))
-               printf("ppirw(%x, %p, %c): burst %d, timo %d, resid %x\n",
+               printf("ppirw(%"PRIx64", %p, %c): burst %d, timo %d, resid %x\n",
                       dev, uio, uio->uio_rw == UIO_READ ? 'R' : 'W',
                       sc->sc_burst, sc->sc_timo, uio->uio_resid);
 #endif
diff -r 8c575233884e -r 2cefafd15409 sys/arch/hp300/dev/rd.c
--- a/sys/arch/hp300/dev/rd.c   Thu Jul 28 03:21:14 2011 +0000
+++ b/sys/arch/hp300/dev/rd.c   Thu Jul 28 03:42:20 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rd.c,v 1.90 2011/02/08 20:20:13 rmind Exp $    */
+/*     $NetBSD: rd.c,v 1.91 2011/07/28 03:42:20 uebayasi Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.90 2011/02/08 20:20:13 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.91 2011/07/28 03:42:20 uebayasi Exp $");
 
 #include "opt_useleds.h"
 #include "rnd.h"
@@ -657,7 +657,7 @@
 
 #ifdef DEBUG
        if (rddebug & RDB_FOLLOW)
-               printf("rdstrategy(%p): dev %x, bn %llx, bcount %x, %c\n",
+               printf("rdstrategy(%p): dev %"PRIx64", bn %llx, bcount %x, %c\n",
                       bp, bp->b_dev, bp->b_blkno, bp->b_bcount,
                       (bp->b_flags & B_READ) ? 'R' : 'W');
 #endif



Home | Main Index | Thread Index | Old Index