svn commit: r229120 - in stable/9/sys/dev/usb: . wlan

Hans Petter Selasky hselasky at FreeBSD.org
Sat Dec 31 15:42:06 UTC 2011


Author: hselasky
Date: Sat Dec 31 15:42:05 2011
New Revision: 229120
URL: http://svn.freebsd.org/changeset/base/229120

Log:
  MFC r228232 and r228303:
  Fix clang compile warnings.

Modified:
  stable/9/sys/dev/usb/usb_msctest.c
  stable/9/sys/dev/usb/wlan/if_zyd.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/amd64/include/xen/   (props changed)
  stable/9/sys/boot/   (props changed)
  stable/9/sys/boot/i386/efi/   (props changed)
  stable/9/sys/boot/ia64/efi/   (props changed)
  stable/9/sys/boot/ia64/ski/   (props changed)
  stable/9/sys/boot/powerpc/boot1.chrp/   (props changed)
  stable/9/sys/boot/powerpc/ofw/   (props changed)
  stable/9/sys/cddl/contrib/opensolaris/   (props changed)
  stable/9/sys/conf/   (props changed)
  stable/9/sys/contrib/dev/acpica/   (props changed)
  stable/9/sys/contrib/octeon-sdk/   (props changed)
  stable/9/sys/contrib/pf/   (props changed)
  stable/9/sys/contrib/x86emu/   (props changed)

Modified: stable/9/sys/dev/usb/usb_msctest.c
==============================================================================
--- stable/9/sys/dev/usb/usb_msctest.c	Sat Dec 31 15:37:31 2011	(r229119)
+++ stable/9/sys/dev/usb/usb_msctest.c	Sat Dec 31 15:42:05 2011	(r229120)
@@ -477,7 +477,7 @@ 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, &sc->cbw.CBWCDB, ":");
+	DPRINTFN(1, "SCSI cmd = %*D\n", (int)cmd_len, (char *)sc->cbw.CBWCDB, ":");
 
 	mtx_lock(&sc->mtx);
 	usbd_transfer_start(sc->xfer[sc->state]);

Modified: stable/9/sys/dev/usb/wlan/if_zyd.c
==============================================================================
--- stable/9/sys/dev/usb/wlan/if_zyd.c	Sat Dec 31 15:37:31 2011	(r229119)
+++ stable/9/sys/dev/usb/wlan/if_zyd.c	Sat Dec 31 15:42:05 2011	(r229120)
@@ -686,7 +686,7 @@ 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, rqp->odata, ":");
+				    rqp, rqp->olen, (char *)rqp->odata, ":");
 				wakeup(rqp);	/* wakeup caller */
 				break;
 			}


More information about the svn-src-stable-9 mailing list