Date: Tue, 3 Nov 2015 08:52:06 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r290327 - in head/sys/dev/usb: . wlan Message-ID: <201511030852.tA38q6sa064210@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Tue Nov 3 08:52:06 2015 New Revision: 290327 URL: https://svnweb.freebsd.org/changeset/base/290327 Log: Fix some clang compile warnings. MFC after: 1 week Modified: head/sys/dev/usb/usb_msctest.c head/sys/dev/usb/wlan/if_zyd.c Modified: head/sys/dev/usb/usb_msctest.c ============================================================================== --- head/sys/dev/usb/usb_msctest.c Tue Nov 3 08:42:43 2015 (r290326) +++ head/sys/dev/usb/usb_msctest.c Tue Nov 3 08:52:06 2015 (r290327) @@ -549,7 +549,8 @@ bbb_command_start(struct bbb_transfer *s sc->cmd_len = cmd_len; memset(&sc->cbw->CBWCDB, 0, sizeof(sc->cbw->CBWCDB)); memcpy(&sc->cbw->CBWCDB, cmd_ptr, cmd_len); - DPRINTFN(1, "SCSI cmd = %*D\n", (int)cmd_len, (char *)sc->cbw->CBWCDB, ":"); + DPRINTFN(1, "SCSI cmd = %*D\n", (int)cmd_len, + (unsigned char *)sc->cbw->CBWCDB, ":"); mtx_lock(&sc->mtx); usbd_transfer_start(sc->xfer[sc->state]); @@ -580,7 +581,7 @@ bbb_raw_write(struct bbb_transfer *sc, c sc->error = 0; DPRINTFN(1, "BULK DATA = %*D\n", (int)data_len, - (const char *)data_ptr, ":"); + (const unsigned char *)data_ptr, ":"); mtx_lock(&sc->mtx); usbd_transfer_start(sc->xfer[0]); Modified: head/sys/dev/usb/wlan/if_zyd.c ============================================================================== --- head/sys/dev/usb/wlan/if_zyd.c Tue Nov 3 08:42:43 2015 (r290326) +++ head/sys/dev/usb/wlan/if_zyd.c Tue Nov 3 08:52:06 2015 (r290327) @@ -703,14 +703,14 @@ zyd_intr_read_callback(struct usb_xfer * memcpy(rqp->odata, cmd->data, rqp->olen); DPRINTF(sc, ZYD_DEBUG_CMD, "command %p complete, data = %*D \n", - rqp, rqp->olen, (char *)rqp->odata, ":"); + rqp, rqp->olen, (unsigned char *)rqp->odata, ":"); wakeup(rqp); /* wakeup caller */ break; } if (rqp == NULL) { device_printf(sc->sc_dev, "unexpected IORD notification %*D\n", - datalen, cmd->data, ":"); + datalen, (unsigned char *)cmd->data, ":"); } break; } @@ -802,7 +802,7 @@ zyd_cmd(struct zyd_softc *sc, uint16_t c cmd.code = htole16(code); memcpy(cmd.data, idata, ilen); DPRINTF(sc, ZYD_DEBUG_CMD, "sending cmd %p = %*D\n", - &rq, ilen, idata, ":"); + &rq, ilen, (unsigned char *)idata, ":"); rq.cmd = &cmd; rq.idata = idata;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511030852.tA38q6sa064210>