Date: Tue, 16 Jun 2009 17:47:34 GMT From: Sylvestre Gallon <syl@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 164520 for review Message-ID: <200906161747.n5GHlYtt076461@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=164520 Change 164520 by syl@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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906161747.n5GHlYtt076461>