PERFORCE change 164617 for review

Sylvestre Gallon syl at FreeBSD.org
Wed Jun 17 19:35:21 UTC 2009


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

Change 164617 by syl at syl_atuin on 2009/06/17 19:35:01

	Update debug printf code to output trace only on the good debug flag.

Affected files ...

.. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.h#9 edit

Differences ...

==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.h#9 (text+ko) ====

@@ -86,6 +86,9 @@
 static inline void 
 dprintf(libusb_context *ctx, int debug, char *str)
 {
+	if (ctx->debug != debug)
+		return ;
+
 	switch (ctx->debug) {
 	case LIBUSB_DEBUG_NO:
 		break ;


More information about the p4-projects mailing list