PERFORCE change 130195 for review

Hans Petter Selasky hselasky at FreeBSD.org
Tue Dec 4 13:00:22 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=130195

Change 130195 by hselasky at hselasky_laptop001 on 2007/12/04 21:00:08

	
	Use "%zu" instead of casting "sizeof()" to "int".
	
	Suggested by Brooks Davis.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/ums.c#32 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/ums.c#32 (text+ko) ====

@@ -185,8 +185,8 @@
 		DPRINTF(5, "sc=%p actlen=%d\n", sc, len);
 
 		if (len > sizeof(sc->sc_temp)) {
-			DPRINTF(5, "truncating large packet to %d bytes\n",
-			    (int)sizeof(sc->sc_temp));
+			DPRINTF(5, "truncating large packet to %zu bytes\n",
+			    sizeof(sc->sc_temp));
 			len = sizeof(sc->sc_temp);
 		}
 		if (len == 0) {


More information about the p4-projects mailing list