From patchwork Sun Oct 4 21:34:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 526369 X-Patchwork-Delegate: trini@ti.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 5E56B14012C for ; Tue, 6 Oct 2015 01:56:38 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6896D4B859; Mon, 5 Oct 2015 16:56:34 +0200 (CEST) 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 n9uSxm6qeMzQ; Mon, 5 Oct 2015 16:56:34 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C33964B842; Mon, 5 Oct 2015 16:56:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 790264B760 for ; Sun, 4 Oct 2015 23:38:52 +0200 (CEST) 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 pijUFbhqrr6k for ; Sun, 4 Oct 2015 23:38:52 +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-qg0-f50.google.com (mail-qg0-f50.google.com [209.85.192.50]) by theia.denx.de (Postfix) with ESMTPS id 2138A4B755 for ; Sun, 4 Oct 2015 23:38:48 +0200 (CEST) Received: by qgx61 with SMTP id 61so135069443qgx.3 for ; Sun, 04 Oct 2015 14:38:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xpyJzKXWRMiojkmVEgo+B6OqeGg82nLu+mq1wjplslo=; b=ASSZN8xeZcsMg+1M6TX/oIDjGa46nAcDHKohFbJRn6Fhqr1hQTHgjh6qhYU4lnuvNz mg7g0cVUNr9bKIxB4sH1AKBkXsCZ/N50a11Qw67GYGwObwy009QFg923Bz8bf6/yasFB Pjg7vzPodMGyuybRzis92B7vB1l17q5r+w/Sbj9aAY8YJ5fH0lnEjXx+Zz+PJEPkFPVC K8lJls+AhozGYitNPO6PACyN8aobgoVmojYALkBKS1tu5Z2qKvCDezQiGg03RzEL3Bq6 GBIHG44IL+WSnqvf3RZrlSprE0c65vuULDQcu2+ojxwK9vvveY+sdnpWzWNAukXL4jP5 /NBQ== X-Gm-Message-State: ALoCoQme/m1VLgaHx7P9sde49AT17ecmRbavnNhEYcHT9M9Zu1xj4dqIbX13gg6i6ufQKydjRpOQ X-Received: by 10.140.97.136 with SMTP id m8mr34678096qge.74.1443994727590; Sun, 04 Oct 2015 14:38:47 -0700 (PDT) Received: from localhost.localdomain ([190.2.108.156]) by smtp.gmail.com with ESMTPSA id n23sm9820008qkl.17.2015.10.04.14.38.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Oct 2015 14:38:46 -0700 (PDT) From: Ezequiel Garcia To: Date: Sun, 4 Oct 2015 18:34:42 -0300 Message-Id: <1443994482-21577-1-git-send-email-ezequiel@vanguardiasur.com.ar> X-Mailer: git-send-email 2.5.2 X-Mailman-Approved-At: Mon, 05 Oct 2015 16:56:32 +0200 Subject: [U-Boot] [PATCH] nand: omap_gpmc: Change correctable bit-flips messages to debug() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Messages on corrected bit-flips are not really useful, as bit-flips are perfectly normal. Let's avoid cluttering the console and make them debug. Signed-off-by: Ezequiel Garcia --- drivers/mtd/nand/omap_gpmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand/omap_gpmc.c index 4372988ed2ab..4814fa202a65 100644 --- a/drivers/mtd/nand/omap_gpmc.c +++ b/drivers/mtd/nand/omap_gpmc.c @@ -558,10 +558,10 @@ static int omap_correct_data_bch(struct mtd_info *mtd, uint8_t *dat, bit_pos = error_loc[count] % 8; if (byte_pos < SECTOR_BYTES) { dat[byte_pos] ^= 1 << bit_pos; - printf("nand: bit-flip corrected @data=%d\n", byte_pos); + debug("nand: bit-flip corrected @data=%d\n", byte_pos); } else if (byte_pos < error_max) { read_ecc[byte_pos - SECTOR_BYTES] ^= 1 << bit_pos; - printf("nand: bit-flip corrected @oob=%d\n", byte_pos - + debug("nand: bit-flip corrected @oob=%d\n", byte_pos - SECTOR_BYTES); } else { err = -EBADMSG; @@ -663,7 +663,7 @@ static int omap_correct_data_bch_sw(struct mtd_info *mtd, u_char *data, /* correct data only, not ecc bytes */ if (errloc[i] < 8*512) data[errloc[i]/8] ^= 1 << (errloc[i] & 7); - printf("corrected bitflip %u\n", errloc[i]); + debug("corrected bitflip %u\n", errloc[i]); #ifdef DEBUG puts("read_ecc: "); /*