Date: Mon, 15 Jun 2009 17:22:40 GMT From: Sylvestre Gallon <syl@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 164434 for review Message-ID: <200906151722.n5FHMe54012521@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=164434 Change 164434 by syl@syl_atuin on 2009/06/15 17:21:57 - fix libusb20_tr_get_pointer following Hans Petter Advices. - Update debug. Affected files ... .. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb.h#11 edit .. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.c#35 edit .. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.h#7 edit Differences ... ==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb.h#11 (text+ko) ==== @@ -177,6 +177,7 @@ }; enum libusb_debug_level { + LIBUSB_DEBUG_NO=0, LIBUSB_DEBUG_FUNCTION=1, }; ==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.c#35 (text+ko) ==== @@ -1036,9 +1036,9 @@ pthread_mutex_unlock(&ctx->flying_transfers_lock); usb20_xfer[0] = libusb20_tr_get_pointer(pdev, - (4 * xfer->endpoint) | (xfer->endpoint / 0x40)); + ((xfer->endpoint / 0x40) | (xfer->endpoint * 4)) % (16 * 4)); usb20_xfer[1] = libusb20_tr_get_pointer(pdev, - ((4 * xfer->endpoint) | (xfer->endpoint / 0x40)) + 1); + (((xfer->endpoint / 0x40) | (xfer->endpoint * 4)) % (16 * 4)) + 1); if (usb20_xfer[0] == NULL) return (LIBUSB_ERROR_OTHER); ==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.h#7 (text+ko) ==== @@ -87,6 +87,8 @@ dprintf(libusb_context *ctx, int debug, char *str) { switch (ctx->debug) { + case LIBUSB_DEBUG_NO: + break ; case LIBUSB_DEBUG_FUNCTION: printf("LIBUSB FUNCTION : %s\n", str); break ;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906151722.n5FHMe54012521>