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 USB_DEBUG build



details:   https://anonhg.NetBSD.org/src/rev/8b8416f7a6d4
branches:  trunk
changeset: 451199:8b8416f7a6d4
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu May 09 14:50:38 2019 +0000

description:
Fix USB_DEBUG build

diffstat:

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

diffs (63 lines):

diff -r e778469f486f -r 8b8416f7a6d4 sys/dev/usb/uplcom.c
--- a/sys/dev/usb/uplcom.c      Thu May 09 13:07:35 2019 +0000
+++ b/sys/dev/usb/uplcom.c      Thu May 09 14:50:38 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uplcom.c,v 1.84 2019/05/09 02:43:35 mrg Exp $  */
+/*     $NetBSD: uplcom.c,v 1.85 2019/05/09 14:50:38 skrll Exp $        */
 
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uplcom.c,v 1.84 2019/05/09 02:43:35 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uplcom.c,v 1.85 2019/05/09 14:50:38 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -270,7 +270,7 @@
        struct ucom_attach_args ucaa;
 
        UPLCOMHIST_FUNC(); UPLCOMHIST_CALLED();
-       DPRINTF("sc=%p", sc, 0, 0, 0);
+       DPRINTF("sc=%#jx", (uintptr_t)sc, 0, 0, 0);
 
        sc->sc_dev = self;
        sc->sc_dying = false;
@@ -497,7 +497,7 @@
        int rv = 0;
 
        UPLCOMHIST_FUNC(); UPLCOMHIST_CALLED();
-       DPRINTF("sc=%p flags=%d", sc, flags, 0, 0);
+       DPRINTF("sc=%#jx flags=%d", (uintptr_t)sc, flags, 0, 0);
 
        sc->sc_dying = true;
  
@@ -752,7 +752,7 @@
        usb_cdc_line_state_t ls;
 
        UPLCOMHIST_FUNC(); UPLCOMHIST_CALLED();
-       DPRINTF("sc=%p", sc, 0, 0, 0);
+       DPRINTF("sc=%#jx", (uintptr_t)sc, 0, 0, 0);
 
        if (sc->sc_dying)
                return EIO;
@@ -835,7 +835,7 @@
        usbd_status err = 0;
  
        UPLCOMHIST_FUNC(); UPLCOMHIST_CALLED();
-       DPRINTF("sc=%p", sc, 0, 0, 0);
+       DPRINTF("sc=%#jx", (uintptr_t)sc, 0, 0, 0);
 
        if (sc->sc_dying)
                return EIO;
@@ -870,7 +870,7 @@
        struct uplcom_softc *sc = addr;
 
        UPLCOMHIST_FUNC(); UPLCOMHIST_CALLED();
-       DPRINTF("sc=%p", sc, 0, 0, 0);
+       DPRINTF("sc=%#jx", (uintptr_t)sc, 0, 0, 0);
 
        if (sc->sc_dying)
                return;



Home | Main Index | Thread Index | Old Index