Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/gpib Fix warnings of printf(9) format.



details:   https://anonhg.NetBSD.org/src/rev/75d5902d5ba2
branches:  trunk
changeset: 747378:75d5902d5ba2
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Sep 12 18:44:36 2009 +0000

description:
Fix warnings of printf(9) format.

diffstat:

 sys/dev/gpib/ct.c  |   9 +++++----
 sys/dev/gpib/mt.c  |   9 +++++----
 sys/dev/gpib/ppi.c |  14 +++++++-------
 3 files changed, 17 insertions(+), 15 deletions(-)

diffs (130 lines):

diff -r b08ae954c499 -r 75d5902d5ba2 sys/dev/gpib/ct.c
--- a/sys/dev/gpib/ct.c Sat Sep 12 18:43:03 2009 +0000
+++ b/sys/dev/gpib/ct.c Sat Sep 12 18:44:36 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ct.c,v 1.21 2009/05/12 14:21:58 cegger Exp $ */
+/*     $NetBSD: ct.c,v 1.22 2009/09/12 18:44:36 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1996-2003 The NetBSD Foundation, Inc.
@@ -121,7 +121,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ct.c,v 1.21 2009/05/12 14:21:58 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ct.c,v 1.22 2009/09/12 18:44:36 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -485,7 +485,8 @@
        struct ct_softc *sc;
        int s;
 
-       DPRINTF(CDB_FOLLOW, ("cdstrategy(%p): dev %x, bn %x, bcount %lx, %c\n",
+       DPRINTF(CDB_FOLLOW, ("cdstrategy(%p): dev %" PRIx64 ", bn %" PRIx64
+           ", bcount %x, %c\n",
            bp, bp->b_dev, bp->b_blkno, bp->b_bcount,
            (bp->b_flags & B_READ) ? 'R' : 'W'));
 
@@ -641,7 +642,7 @@
         * we really read and update b_resid.
         */
        blks = sc->sc_stat.c_blk - sc->sc_blkno - 1;
-       DPRINTF(CDB_FILES, ("cteof: bc %ld oblk %d nblk %d read %ld, resid %ld\n",
+       DPRINTF(CDB_FILES, ("cteof: bc %d oblk %d nblk %d read %ld, resid %ld\n",
            bp->b_bcount, sc->sc_blkno, sc->sc_stat.c_blk,
            blks, bp->b_bcount - CTKTOB(blks)));
        if (blks == -1) { /* 9145 on EOF does not change sc_stat.c_blk */
diff -r b08ae954c499 -r 75d5902d5ba2 sys/dev/gpib/mt.c
--- a/sys/dev/gpib/mt.c Sat Sep 12 18:43:03 2009 +0000
+++ b/sys/dev/gpib/mt.c Sat Sep 12 18:44:36 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mt.c,v 1.21 2009/05/18 20:41:57 ad Exp $ */
+/*     $NetBSD: mt.c,v 1.22 2009/09/12 18:44:36 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1996-2003 The NetBSD Foundation, Inc.
@@ -114,7 +114,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.21 2009/05/18 20:41:57 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.22 2009/09/12 18:44:36 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -955,8 +955,9 @@
                        if (i == 0)
                                sc->sc_flags |= MTF_HITEOF;
                        bp->b_resid = bp->b_bcount - i;
-                       DPRINTF(MDB_ANY, ("%s intr: bcount %ld, resid %ld",
-                           device_xname(&sc->sc_dev), bp->b_bcount, bp->b_resid));
+                       DPRINTF(MDB_ANY, ("%s intr: bcount %d, resid %d",
+                           device_xname(&sc->sc_dev),
+                           bp->b_bcount, bp->b_resid));
                } else {
                        tprintf(sc->sc_ttyp,
                                "%s: record (%d) larger than wanted (%d)\n",
diff -r b08ae954c499 -r 75d5902d5ba2 sys/dev/gpib/ppi.c
--- a/sys/dev/gpib/ppi.c        Sat Sep 12 18:43:03 2009 +0000
+++ b/sys/dev/gpib/ppi.c        Sat Sep 12 18:44:36 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ppi.c,v 1.18 2009/09/12 18:43:03 tsutsui Exp $ */
+/*     $NetBSD: ppi.c,v 1.19 2009/09/12 18:44:36 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1996-2003 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ppi.c,v 1.18 2009/09/12 18:43:03 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ppi.c,v 1.19 2009/09/12 18:44:36 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -184,7 +184,7 @@
        if ((sc->sc_flags & PPIF_ALIVE) == 0)
                return (ENXIO);
 
-       DPRINTF(PDB_FOLLOW, ("ppiopen(%x, %x): flags %x\n",
+       DPRINTF(PDB_FOLLOW, ("ppiopen(%" PRIx64 ", %x): flags %x\n",
            dev, flags, sc->sc_flags));
 
        if (sc->sc_flags & PPIF_OPEN)
@@ -204,7 +204,7 @@
 
        sc = device_lookup_private(&ppi_cd, UNIT(dev));
 
-       DPRINTF(PDB_FOLLOW, ("ppiclose(%x, %x): flags %x\n",
+       DPRINTF(PDB_FOLLOW, ("ppiclose(%" PRIx64 ", %x): flags %x\n",
                       dev, flags, sc->sc_flags));
 
        sc->sc_flags &= ~PPIF_OPEN;
@@ -259,7 +259,7 @@
 ppiread(dev_t dev, struct uio *uio, int flags)
 {
 
-       DPRINTF(PDB_FOLLOW, ("ppiread(%x, %p)\n", dev, uio));
+       DPRINTF(PDB_FOLLOW, ("ppiread(%" PRIx64 ", %p)\n", dev, uio));
 
        return (ppirw(dev, uio));
 }
@@ -268,7 +268,7 @@
 ppiwrite(dev_t dev, struct uio *uio, int flags)
 {
 
-       DPRINTF(PDB_FOLLOW, ("ppiwrite(%x, %p)\n", dev, uio));
+       DPRINTF(PDB_FOLLOW, ("ppiwrite(%" PRIx64 ", %p)\n", dev, uio));
 
        return (ppirw(dev, uio));
 }
@@ -289,7 +289,7 @@
        address = sc->sc_address;
 
        DPRINTF(PDB_FOLLOW|PDB_IO,
-           ("ppirw(%x, %p, %c): burst %d, timo %d, resid %x\n",
+           ("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));
 



Home | Main Index | Thread Index | Old Index