Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jun 2009 19:35:20 GMT
From:      Sylvestre Gallon <syl@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 164617 for review
Message-ID:  <200906171935.n5HJZKvh093527@repoman.freebsd.org>

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

Change 164617 by syl@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 ;



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