PERFORCE change 130185 for review

Brooks Davis brooks at freebsd.org
Tue Dec 4 12:39:56 PST 2007


On Tue, Dec 04, 2007 at 08:35:52PM +0000, Hans Petter Selasky wrote:
> http://perforce.freebsd.org/chv.cgi?CH=130185
> 
> Change 130185 by hselasky at hselasky_laptop001 on 2007/12/04 20:35:00
> 
> 	
> 	Compile fixes for Sparc64.
> 	
> 	The change to "usb_transfer.c" is actually
> 	a bug fix.

> ==== //depot/projects/usb/src/sys/dev/usb/ums.c#31 (text+ko) ====
> 
> @@ -186,7 +186,7 @@
>  
>  		if (len > sizeof(sc->sc_temp)) {
>  			DPRINTF(5, "truncating large packet to %d bytes\n",
> -			    sizeof(sc->sc_temp));
> +			    (int)sizeof(sc->sc_temp));

You should use %zu to print size_t's, not cast them to ints.

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/p4-projects/attachments/20071204/80f3eb3c/attachment.pgp


More information about the p4-projects mailing list