Thu Jul 28 03:42:21 2011 UTC ()
dev_t is uint64_t; use PRIx64 to print it.  Fix DEBUG build.


(uebayasi)
diff -r1.42 -r1.43 src/sys/arch/hp300/dev/ppi.c
diff -r1.90 -r1.91 src/sys/arch/hp300/dev/rd.c

cvs diff -r1.42 -r1.43 src/sys/arch/hp300/dev/ppi.c (expand / switch to context diff)
--- src/sys/arch/hp300/dev/ppi.c 2008/06/18 12:25:13 1.42
+++ src/sys/arch/hp300/dev/ppi.c 2011/07/28 03:42:20 1.43
@@ -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

cvs diff -r1.90 -r1.91 src/sys/arch/hp300/dev/rd.c (expand / switch to context diff)
--- src/sys/arch/hp300/dev/rd.c 2011/02/08 20:20:13 1.90
+++ src/sys/arch/hp300/dev/rd.c 2011/07/28 03:42:20 1.91
@@ -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