From patchwork Sun Jul 15 14:43:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Yanok X-Patchwork-Id: 171074 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 984EF2C00D6 for ; Mon, 16 Jul 2012 00:45:31 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CD68D281A2; Sun, 15 Jul 2012 16:45:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PlEerWmfk0Br; Sun, 15 Jul 2012 16:45:18 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0C6F02818D; Sun, 15 Jul 2012 16:44:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D038F28185 for ; Sun, 15 Jul 2012 16:44:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VkcnMu7N+0rg for ; Sun, 15 Jul 2012 16:44:36 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by theia.denx.de (Postfix) with ESMTPS id 831F92814D for ; Sun, 15 Jul 2012 16:44:29 +0200 (CEST) Received: by mail-lb0-f172.google.com with SMTP id go11so6379686lbb.3 for ; Sun, 15 Jul 2012 07:44:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=lREnD3LGtEyDadt93rZnM8VzzEtnmogB98dQnpxtvHM=; b=do1y380u3jplrw/G5r6MXfmDkd0q+1YexXbpcK8BPsDOgIPFG8bh0bSDuXkNwW3XRO y/68efKDkfsE07WwfBDW3APl5W04EH4B8hDMyxo5obpz4NlInLiOrL0zrkhanHpVC0Q2 rpCZtc+A9JH4wN7kxMo8OZvX/+zW9pGjL8L2NuZam/XqLS120Rw0+Z3g10u0NGKJMPbB iIFOHZHBRP/BujVFvP8w3N6omDcLSbo1pWUex2wUcdxMz79X+cEwroxx8pdMixoQbB4i C1nVBufOgWY1uSKIgzK+rxONXBMOjE9onxyCaIcd3SihSaS8yQXoEULLth8JGwxwWfg3 9eQw== Received: by 10.152.113.199 with SMTP id ja7mr8198112lab.10.1342363469145; Sun, 15 Jul 2012 07:44:29 -0700 (PDT) Received: from localhost.localdomain ([188.134.70.194]) by mx.google.com with ESMTPS id b3sm2924673lbh.6.2012.07.15.07.44.28 (version=SSLv3 cipher=OTHER); Sun, 15 Jul 2012 07:44:28 -0700 (PDT) From: Ilya Yanok To: u-boot@lists.denx.de, Marek Vasut Date: Sun, 15 Jul 2012 18:43:52 +0400 Message-Id: <1342363433-9284-8-git-send-email-ilya.yanok@cogentembedded.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1342363433-9284-1-git-send-email-ilya.yanok@cogentembedded.com> References: <1342363433-9284-1-git-send-email-ilya.yanok@cogentembedded.com> X-Gm-Message-State: ALoCoQn6jSdk3ntKZ8v/vtabY+eNUWV8mxNwLZc9uSNxe1Z6XB9v5rDZbQ/SGBm23rlkcN9QGL3n Cc: Tom Rini , Ilya Yanok Subject: [U-Boot] [PATCH V2 7/8] ehci-hcd: change debug() to printf() in case of errors X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Printing message could be useful if something goes really wrong. Signed-off-by: Ilya Yanok --- drivers/usb/host/ehci-hcd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index a6cd5e3..52df7fa 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -196,7 +196,7 @@ static int ehci_td_buffer(struct qTD *td, void *buf, size_t sz) } if (idx == 5) { - debug("out of buffer pointers (%u bytes left)\n", sz); + printf("out of buffer pointers (%u bytes left)\n", sz); return -1; } @@ -282,7 +282,7 @@ ehci_submit_async(struct usb_device *dev, unsigned long pipe, void *buffer, (0 << 15) | (0 << 12) | (3 << 10) | (2 << 8) | (0x80 << 0); qtd[qtd_counter].qt_token = cpu_to_hc32(token); if (ehci_td_buffer(&qtd[qtd_counter], req, sizeof(*req)) != 0) { - debug("unable construct SETUP td\n"); + printf("unable construct SETUP td\n"); goto fail; } /* Update previous qTD! */ @@ -311,7 +311,7 @@ ehci_submit_async(struct usb_device *dev, unsigned long pipe, void *buffer, ((usb_pipein(pipe) ? 1 : 0) << 8) | (0x80 << 0); qtd[qtd_counter].qt_token = cpu_to_hc32(token); if (ehci_td_buffer(&qtd[qtd_counter], buffer, length) != 0) { - debug("unable construct DATA td\n"); + printf("unable construct DATA td\n"); goto fail; } /* Update previous qTD! */