Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Make these files compile on 64 bit archs.



details:   https://anonhg.NetBSD.org/src/rev/4aeb133525ea
branches:  trunk
changeset: 479699:4aeb133525ea
user:      augustss <augustss%NetBSD.org@localhost>
date:      Sat Dec 18 22:47:11 1999 +0000

description:
Make these files compile on 64 bit archs.

diffstat:

 sys/dev/usb/uhid.c    |   4 ++--
 sys/dev/usb/usb_mem.c |  11 ++++++-----
 2 files changed, 8 insertions(+), 7 deletions(-)

diffs (57 lines):

diff -r 4e628f65f7eb -r 4aeb133525ea sys/dev/usb/uhid.c
--- a/sys/dev/usb/uhid.c        Sat Dec 18 22:05:19 1999 +0000
+++ b/sys/dev/usb/uhid.c        Sat Dec 18 22:47:11 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhid.c,v 1.28 1999/11/18 23:32:29 augustss Exp $       */
+/*     $NetBSD: uhid.c,v 1.29 1999/12/18 22:47:11 augustss Exp $       */
 /*     $FreeBSD: src/sys/dev/usb/uhid.c,v 1.22 1999/11/17 22:33:43 n_hibma Exp $       */
 
 /*
@@ -473,7 +473,7 @@
 
                /* Remove a small chunk from the input queue. */
                (void) q_to_b(&sc->sc_q, buffer, length);
-               DPRINTFN(5, ("uhidread: got %d chars\n", length));
+               DPRINTFN(5, ("uhidread: got %lu chars\n", (u_long)length));
 
                /* Copy the data to the user process. */
                if ((error = uiomove(buffer, length, uio)) != 0)
diff -r 4e628f65f7eb -r 4aeb133525ea sys/dev/usb/usb_mem.c
--- a/sys/dev/usb/usb_mem.c     Sat Dec 18 22:05:19 1999 +0000
+++ b/sys/dev/usb/usb_mem.c     Sat Dec 18 22:47:11 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb_mem.c,v 1.16 1999/11/12 00:34:58 augustss Exp $    */
+/*     $NetBSD: usb_mem.c,v 1.17 1999/12/18 22:47:11 augustss Exp $    */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -102,7 +102,8 @@
         usb_dma_block_t *p;
        int s;
 
-       DPRINTFN(5, ("usb_block_allocmem: size=%d align=%d\n", size, align));
+       DPRINTFN(5, ("usb_block_allocmem: size=%lu align=%lu\n", 
+                    (u_long)size, (u_long)align));
 
 #ifdef DIAGNOSTIC
        if (!curproc) {
@@ -118,8 +119,8 @@
                        LIST_REMOVE(p, next);
                        splx(s);
                        *dmap = p;
-                       DPRINTFN(6,("usb_block_allocmem: free list size=%d\n",
-                                   p->size));
+                       DPRINTFN(6,("usb_block_allocmem: free list size=%lu\n",
+                                   (u_long)p->size));
                        return (USBD_NORMAL_COMPLETION);
                }
        }
@@ -202,7 +203,7 @@
 {
        int s;
 
-       DPRINTFN(6, ("usb_block_freemem: size=%d\n", p->size));
+       DPRINTFN(6, ("usb_block_freemem: size=%lu\n", (u_long)p->size));
        s = splusb();
        LIST_INSERT_HEAD(&usb_blk_freelist, p, next);
        splx(s);



Home | Main Index | Thread Index | Old Index