From owner-p4-projects@FreeBSD.ORG Sun Dec 30 15:51:22 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 354FC16A41A; Sun, 30 Dec 2007 15:51:22 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE77716A418 for ; Sun, 30 Dec 2007 15:51:21 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id DE8AB13C44B for ; Sun, 30 Dec 2007 15:51:21 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lBUFpLmw019875 for ; Sun, 30 Dec 2007 15:51:21 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lBUFpL5j019872 for perforce@freebsd.org; Sun, 30 Dec 2007 15:51:21 GMT (envelope-from hselasky@FreeBSD.org) Date: Sun, 30 Dec 2007 15:51:21 GMT Message-Id: <200712301551.lBUFpL5j019872@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky To: Perforce Change Reviews Cc: Subject: PERFORCE change 132108 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Dec 2007 15:51:22 -0000 http://perforce.freebsd.org/chv.cgi?CH=132108 Change 132108 by hselasky@hselasky_laptop001 on 2007/12/30 15:50:30 Fix "uchcom" header files. Substitute "DPRINTF" by "DPRINTFN". Affected files ... .. //depot/projects/usb/src/sys/dev/usb/uchcom.c#15 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/uchcom.c#15 (text+ko) ==== @@ -72,24 +72,17 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include #include -#include - -#include -#include +#include #include +#include #include + #include "usbdevs.h" #ifdef USB_DEBUG @@ -319,7 +312,7 @@ { struct usb_attach_arg *uaa = device_get_ivars(dev); - DPRINTF(10, "\n"); + DPRINTFN(10, "\n"); if (uaa->usb_mode != USB_MODE_HOST) { return (UMATCH_NONE); @@ -341,7 +334,7 @@ int error; uint8_t iface_index; - DPRINTF(10, "\n"); + DPRINTFN(10, "\n"); if (sc == NULL) { return (ENOMEM); @@ -375,7 +368,7 @@ UCHCOM_N_TRANSFER, sc, &Giant); if (error) { - DPRINTF(0, "one or more missing USB endpoints, " + DPRINTFN(0, "one or more missing USB endpoints, " "error=%s\n", usbd_errstr(error)); goto detach; } @@ -412,7 +405,7 @@ { struct uchcom_softc *sc = device_get_softc(dev); - DPRINTF(10, "\n"); + DPRINTFN(10, "\n"); ucom_detach(&(sc->sc_super_ucom), &(sc->sc_ucom), 1); @@ -767,7 +760,7 @@ { struct uchcom_softc *sc = ucom->sc_parent; - DPRINTF(0, "\n"); + DPRINTFN(0, "\n"); *lsr = sc->sc_lsr; *msr = sc->sc_msr; @@ -786,7 +779,7 @@ { struct uchcom_softc *sc = ucom->sc_parent; - DPRINTF(0, "onoff = %d\n", onoff); + DPRINTFN(0, "onoff = %d\n", onoff); sc->sc_dtr = onoff; uchcom_set_dtrrts(sc); @@ -798,7 +791,7 @@ { struct uchcom_softc *sc = ucom->sc_parent; - DPRINTF(0, "onoff = %d\n", onoff); + DPRINTFN(0, "onoff = %d\n", onoff); sc->sc_rts = onoff; uchcom_set_dtrrts(sc); @@ -892,7 +885,7 @@ switch (USBD_GET_STATE(xfer)) { case USBD_ST_TRANSFERRED: - DPRINTF(0, "actlen = %u\n", xfer->actlen); + DPRINTFN(0, "actlen = %u\n", xfer->actlen); if (xfer->actlen >= UCHCOM_INTR_LEAST) { usbd_copy_out(xfer->frbuffers + 0, 0, buf, @@ -932,7 +925,7 @@ struct usbd_xfer *xfer_other = sc->sc_xfer[4]; if (usbd_clear_stall_callback(xfer, xfer_other)) { - DPRINTF(0, "stall cleared\n"); + DPRINTFN(0, "stall cleared\n"); sc->sc_flag &= ~UCHCOM_FLAG_INTR_STALL; usbd_transfer_start(xfer_other); } @@ -955,7 +948,7 @@ if (ucom_get_data(&(sc->sc_ucom), xfer->frbuffers + 0, 0, UCHCOM_BULK_BUF_SIZE, &actlen)) { - DPRINTF(0, "actlen = %d\n", actlen); + DPRINTFN(0, "actlen = %d\n", actlen); xfer->frlengths[0] = actlen; usbd_start_hardware(xfer); @@ -979,7 +972,7 @@ struct usbd_xfer *xfer_other = sc->sc_xfer[0]; if (usbd_clear_stall_callback(xfer, xfer_other)) { - DPRINTF(0, "stall cleared\n"); + DPRINTFN(0, "stall cleared\n"); sc->sc_flag &= ~UCHCOM_FLAG_WRITE_STALL; usbd_transfer_start(xfer_other); } @@ -1021,7 +1014,7 @@ struct usbd_xfer *xfer_other = sc->sc_xfer[1]; if (usbd_clear_stall_callback(xfer, xfer_other)) { - DPRINTF(0, "stall cleared\n"); + DPRINTFN(0, "stall cleared\n"); sc->sc_flag &= ~UCHCOM_FLAG_READ_STALL; usbd_transfer_start(xfer_other); }