Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb fix printf formats



details:   https://anonhg.NetBSD.org/src/rev/874dae083fc6
branches:  trunk
changeset: 784026:874dae083fc6
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jan 15 04:02:56 2013 +0000

description:
fix printf formats

diffstat:

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

diffs (49 lines):

diff -r c8482eee22a0 -r 874dae083fc6 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Tue Jan 15 03:56:20 2013 +0000
+++ b/sys/dev/usb/ehci.c        Tue Jan 15 04:02:56 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci.c,v 1.199 2013/01/15 03:24:00 christos Exp $ */
+/*     $NetBSD: ehci.c,v 1.200 2013/01/15 04:02:56 christos Exp $ */
 
 /*
  * Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.199 2013/01/15 03:24:00 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.200 2013/01/15 04:02:56 christos Exp $");
 
 #include "ohci.h"
 #include "uhci.h"
@@ -83,7 +83,7 @@
 #include <dev/usb/usbroothub_subr.h>
 
 #ifdef EHCI_DEBUG
-static void
+static void __printflike(1, 2)
 ehciprintf(const char *fmt, ...)
 {
        va_list ap;
@@ -2783,8 +2783,8 @@
                                panic("ehci_alloc_sqtd_chain: curlen == 0");
 #endif
                }
-               DPRINTFN(4,("ehci_alloc_sqtd_chain: len=%d curlen=%d "
-                           "curoffs=%d\n", len, curlen, curoffs));
+               DPRINTFN(4,("ehci_alloc_sqtd_chain: len=%d curlen=%zu "
+                           "curoffs=%d\n", len, curlen, (size_t)curoffs));
 
                /*
                 * Allocate another transfer if there's more data left,
@@ -2826,8 +2826,8 @@
                cur->xfer = xfer;
                cur->len = curlen;
 
-               DPRINTFN(10,("ehci_alloc_sqtd_chain: cbp=0x%08x end=0x%08x\n",
-                           curoffs, curoffs + curlen));
+               DPRINTFN(10,("ehci_alloc_sqtd_chain: cbp=0x%08zx end=0x%08zx\n",
+                           (size_t)curoffs, (size_t)(curoffs + curlen)));
 
                /* adjust the toggle based on the number of packets in this
                   qtd */



Home | Main Index | Thread Index | Old Index