Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Cast size_t to long for printf purposes.



details:   https://anonhg.NetBSD.org/src/rev/a9d399e9e398
branches:  trunk
changeset: 473468:a9d399e9e398
user:      pk <pk%NetBSD.org@localhost>
date:      Sat Jun 05 08:35:45 1999 +0000

description:
Cast size_t to long for printf purposes.

diffstat:

 sys/dev/ic/lsi64854.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (49 lines):

diff -r 21dc1cf949e9 -r a9d399e9e398 sys/dev/ic/lsi64854.c
--- a/sys/dev/ic/lsi64854.c     Sat Jun 05 05:35:41 1999 +0000
+++ b/sys/dev/ic/lsi64854.c     Sat Jun 05 08:35:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lsi64854.c,v 1.7 1999/04/20 20:21:04 pk Exp $ */
+/*     $NetBSD: lsi64854.c,v 1.8 1999/06/05 08:35:45 pk Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -264,8 +264,8 @@
        sc->sc_dmaaddr = addr;
        sc->sc_dmalen = len;
 
-       DPRINTF(("%s: start %d@%p,%d\n", sc->sc_dev.dv_xname,
-               *sc->sc_dmalen, *sc->sc_dmaaddr, datain ? 1 : 0));
+       DPRINTF(("%s: start %ld@%p,%d\n", sc->sc_dev.dv_xname,
+               (long)*sc->sc_dmalen, *sc->sc_dmaaddr, datain ? 1 : 0));
 
        /*
         * the rules say we cannot transfer more than the limit
@@ -275,7 +275,7 @@
        *dmasize = sc->sc_dmasize =
                min(*dmasize, DMAMAX((size_t) *sc->sc_dmaaddr));
 
-       DPRINTF(("dma_setup: dmasize = %d\n", sc->sc_dmasize));
+       DPRINTF(("dma_setup: dmasize = %ld\n", (long)sc->sc_dmasize));
 
        /* Program the DMA address */
        if (sc->sc_dmasize) {
@@ -499,8 +499,8 @@
        sc->sc_dmaaddr = addr;
        sc->sc_dmalen = len;
 
-       DPRINTF(("%s: start %d@%p,%d\n", sc->sc_dev.dv_xname,
-               *sc->sc_dmalen, *sc->sc_dmaaddr, datain ? 1 : 0));
+       DPRINTF(("%s: start %ld@%p,%d\n", sc->sc_dev.dv_xname,
+               (long)*sc->sc_dmalen, *sc->sc_dmaaddr, datain ? 1 : 0));
 
        /*
         * the rules say we cannot transfer more than the limit
@@ -510,7 +510,7 @@
        *dmasize = sc->sc_dmasize =
                min(*dmasize, DMAMAX((size_t) *sc->sc_dmaaddr));
 
-       DPRINTF(("dma_setup: dmasize = %d\n", sc->sc_dmasize));
+       DPRINTF(("dma_setup: dmasize = %ld\n", (long)sc->sc_dmasize));
 
        /* Program the DMA address */
        if (sc->sc_dmasize) {



Home | Main Index | Thread Index | Old Index