From owner-p4-projects@FreeBSD.ORG Tue Jun 16 17:47:35 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E89AA1065672; Tue, 16 Jun 2009 17:47:34 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A78DE106564A for ; Tue, 16 Jun 2009 17:47:34 +0000 (UTC) (envelope-from syl@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 95DF58FC0A for ; Tue, 16 Jun 2009 17:47:34 +0000 (UTC) (envelope-from syl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n5GHlYFU076463 for ; Tue, 16 Jun 2009 17:47:34 GMT (envelope-from syl@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n5GHlYtt076461 for perforce@freebsd.org; Tue, 16 Jun 2009 17:47:34 GMT (envelope-from syl@FreeBSD.org) Date: Tue, 16 Jun 2009 17:47:34 GMT Message-Id: <200906161747.n5GHlYtt076461@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to syl@FreeBSD.org using -f From: Sylvestre Gallon To: Perforce Change Reviews Cc: Subject: PERFORCE change 164520 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2009 17:47:36 -0000 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");