PERFORCE change 164520 for review
Sylvestre Gallon
syl at FreeBSD.org
Tue Jun 16 17:47:36 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=164520
Change 164520 by syl at syl_atuin on 2009/06/16 17:47:14
Remove debuging printf.
Affected files ...
.. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.c#37 edit
Differences ...
==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.c#37 (text+ko) ====
@@ -160,29 +160,24 @@
if (usb_backend == NULL)
return (-1);
- printf("1\n");
pdev = NULL;
i = 0;
while ((pdev = libusb20_be_device_foreach(usb_backend, pdev)))
i++;
- printf("2\n");
if (list == NULL) {
libusb20_be_free(usb_backend);
return (LIBUSB_ERROR_INVALID_PARAM);
}
*list = malloc((i + 1) * sizeof(void *));
- printf("3\n");
if (*list == NULL) {
libusb20_be_free(usb_backend);
return (LIBUSB_ERROR_NO_MEM);
}
- printf("4\n");
i = 0;
while ((pdev = libusb20_be_device_foreach(usb_backend, NULL))) {
/* get device into libUSB v1.0 list */
libusb20_be_dequeue_device(usb_backend, pdev);
- printf("5\n");
ddesc = libusb20_dev_get_device_desc(pdev);
dev = malloc(sizeof(*dev));
@@ -210,7 +205,6 @@
i++;
}
(*list)[i] = NULL;
- printf("6\n");
libusb20_be_free(usb_backend);
dprintf(ctx, LIBUSB_DEBUG_FUNCTION, "libusb_get_device_list leave");
More information about the p4-projects
mailing list