Source-Changes-HG archive

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

[src/trunk]: src/sys/arch fix printf formats to match with sys/buf.h 1.75.



details:   https://anonhg.NetBSD.org/src/rev/1231dea4371f
branches:  trunk
changeset: 570073:1231dea4371f
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Sep 22 09:56:18 2004 +0000

description:
fix printf formats to match with sys/buf.h 1.75.

diffstat:

 sys/arch/hp300/dev/mt.c       |  10 +++++-----
 sys/arch/mac68k/obio/iwm_fd.c |  18 +++++++++---------
 2 files changed, 14 insertions(+), 14 deletions(-)

diffs (106 lines):

diff -r 2a21d93b1080 -r 1231dea4371f sys/arch/hp300/dev/mt.c
--- a/sys/arch/hp300/dev/mt.c   Tue Sep 21 21:57:30 2004 +0000
+++ b/sys/arch/hp300/dev/mt.c   Wed Sep 22 09:56:18 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mt.c,v 1.25 2004/08/28 17:37:02 thorpej Exp $  */
+/*     $NetBSD: mt.c,v 1.26 2004/09/22 09:56:18 yamt Exp $     */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.25 2004/08/28 17:37:02 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.26 2004/09/22 09:56:18 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -494,7 +494,7 @@
                }
                if (bp->b_bcount > s) {
                        tprintf(sc->sc_ttyp,
-                               "%s: write record (%ld) too big: limit (%d)\n",
+                               "%s: write record (%d) too big: limit (%d)\n",
                                sc->sc_dev.dv_xname, bp->b_bcount, s);
 #if 0 /* XXX see above */
            error:
@@ -898,11 +898,11 @@
                        if (i == 0)
                                sc->sc_flags |= MTF_HITEOF;
                        bp->b_resid = bp->b_bcount - i;
-                       dlog(LOG_DEBUG, "%s intr: bcount %ld, resid %ld",
+                       dlog(LOG_DEBUG, "%s intr: bcount %d, resid %d",
                            sc->sc_dev.dv_xname, bp->b_bcount, bp->b_resid);
                } else {
                        tprintf(sc->sc_ttyp,
-                               "%s: record (%d) larger than wanted (%ld)\n",
+                               "%s: record (%d) larger than wanted (%d)\n",
                                sc->sc_dev.dv_xname, i, bp->b_bcount);
     error:
                        sc->sc_flags &= ~MTF_IO;
diff -r 2a21d93b1080 -r 1231dea4371f sys/arch/mac68k/obio/iwm_fd.c
--- a/sys/arch/mac68k/obio/iwm_fd.c     Tue Sep 21 21:57:30 2004 +0000
+++ b/sys/arch/mac68k/obio/iwm_fd.c     Wed Sep 22 09:56:18 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iwm_fd.c,v 1.26 2004/09/13 15:17:44 drochner Exp $     */
+/*     $NetBSD: iwm_fd.c,v 1.27 2004/09/22 10:08:51 yamt Exp $ */
 
 /*
  * Copyright (c) 1997, 1998 Hauke Fath.  All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iwm_fd.c,v 1.26 2004/09/13 15:17:44 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iwm_fd.c,v 1.27 2004/09/22 10:08:51 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1026,13 +1026,13 @@
        if (TRACE_STRAT) {
                printf("iwm: fdstrategy()...\n");
                printf("     struct buf is at %p\n", bp);
-               printf("     Allocated buffer size (b_bufsize): 0x0%lx\n",
+               printf("     Allocated buffer size (b_bufsize): 0x0%x\n",
                    bp->b_bufsize);
                printf("     Base address of buffer (b_data): %p\n",
                    bp->b_data);
-               printf("     Bytes to be transferred (b_bcount): 0x0%lx\n",
+               printf("     Bytes to be transferred (b_bcount): 0x0%x\n",
                    bp->b_bcount);
-               printf("     Remaining I/O (b_resid): 0x0%lx\n",
+               printf("     Remaining I/O (b_resid): 0x0%x\n",
                    bp->b_resid);
        }
        /* Check for valid fd unit, controller and io request */
@@ -1052,7 +1052,7 @@
                    || (bp->b_bcount % sectSize) != 0) {
                        if (TRACE_STRAT)
                                printf(" Illegal transfer size: "
-                                   "block %lld, %ld bytes\n",
+                                   "block %lld, %d bytes\n",
                                    (long long) bp->b_blkno, bp->b_bcount);
                        err = EINVAL;
                }
@@ -1105,7 +1105,7 @@
                if (TRACE_STRAT) {
                        printf(" This job starts at b_blkno %lld; ",
                            (long long) bp->b_blkno);
-                       printf("it gets sorted for cylinder # %ld.\n",
+                       printf("it gets sorted for cylinder # %d.\n",
                            bp->b_cylinder);
                }
                spl = splbio();
@@ -1130,9 +1130,9 @@
        /* Comment on results */
        if (TRACE_STRAT) {
                printf("iwm: fdstrategy() done.\n");
-               printf("     We have b_resid = %ld bytes left, " \
+               printf("     We have b_resid = %d bytes left, " \
                    "b_error is %d;\n", bp->b_resid, bp->b_error);
-               printf("     b_flags are 0x0%lx.\n", bp->b_flags);
+               printf("     b_flags are 0x0%x.\n", bp->b_flags);
        }
 }
 



Home | Main Index | Thread Index | Old Index