Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Dec 2007 21:00:21 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 130195 for review
Message-ID:  <200712042100.lB4L0L1v012953@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=130195

Change 130195 by hselasky@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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712042100.lB4L0L1v012953>