Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jun 2009 20:22:39 GMT
From:      Sylvestre Gallon <syl@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 164898 for review
Message-ID:  <200906222022.n5MKMdvB058872@repoman.freebsd.org>

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

Change 164898 by syl@syl_atuin on 2009/06/22 20:21:38

	Remove junk debug trace.

Affected files ...

.. //depot/projects/soc2009/syl_usb/libusb-tests/transfers/test1/test1.c#7 edit
.. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.c#44 edit

Differences ...

==== //depot/projects/soc2009/syl_usb/libusb-tests/transfers/test1/test1.c#7 (text+ko) ====

@@ -29,7 +29,6 @@
 		ret = libusb_control_transfer(devh, 0xa1, 0x03, 0x00, 0x00, data, 2, 10);
 		printf("end tr\n");
 		printf("data = 0x%.2x 0x%.2x\n", data[0], data[1]);
-		printf("transfer failed with 0x%.8x error code\n", ret);
 	} else {
 		fprintf(stderr, "\nNo device match or lack of permissions.\n");
 	}

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

@@ -833,7 +833,6 @@
 
 	switch (status) {
 	case LIBUSB20_TRANSFER_COMPLETED:
-		printf("completed\n");
 		dprintf(ctx, LIBUSB_DEBUG_TRANSFER, "LIBUSB20 SUBMIT");
 		usb_xfer->actual_length += libusb20_tr_get_actual_length(xfer);
 		usb_xfer->callback(usb_xfer);
@@ -843,7 +842,6 @@
 		pthread_mutex_unlock(&ctx->flying_transfers_lock);
 		break ;
 	case LIBUSB20_TRANSFER_START:
-		printf("start\n");
 		dprintf(ctx, LIBUSB_DEBUG_TRANSFER, "LIBUSB20 START");
 		usb_xfer->actual_length = 0;
 		switch (usb_xfer->type) {
@@ -880,7 +878,8 @@
 		dprintf(ctx, LIBUSB_DEBUG_TRANSFER, "LIBUSB20 SUBMITED");
 		break ;
 	default:
-		printf("default 0x%x\n", status);
+		if (ctx->debug == LIBUSB_DEBUG_TRANSFER)
+			printf("LIBUSB TRANSFER DEFAULT 0x%x\n", status);
 		usb_xfer->actual_length = 0;
 		usb_xfer->status = LIBUSB_TRANSFER_CANCELLED;
 



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