From patchwork Wed Sep 5 13:27:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 181860 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (unknown [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7EB882C008F for ; Wed, 5 Sep 2012 23:28:43 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T9Fe0-0003W6-33; Wed, 05 Sep 2012 13:27:48 +0000 Received: from mail-gh0-f177.google.com ([209.85.160.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T9Fdx-0003VN-Ae for linux-mtd@lists.infradead.org; Wed, 05 Sep 2012 13:27:45 +0000 Received: by ghbf20 with SMTP id f20so73097ghb.36 for ; Wed, 05 Sep 2012 06:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=wI8V9odDtj5U/6GOfqbJ/2N8a9x4sCOclyi51hZeaVM=; b=xK8dc2lii2SYQs1HhAEXkNaQrluk+pIu89blpAL4fySvCZGhYwDTCFU2tgIGiPbBQd U3CZqvnB8lqod1nXOkHgzPXPigfdPT9mNugFj7rV7WVEunNwscCuzv8r1FwEJ2OOt8lk zhYCbqt5C6AVoSU1xqrSwxJYaR7uSpQkIw131LzsUt2Y0h2qEqb91TIEVLLFgH4zGMEq bVilVZu9R5TKsgolwIEYNH67Rk2qA9DZP5kO/fH5kCx20s1svqWm1xrqeAUecmNrDMbK LE6SHNZGsrbWuY98WUECr4x4lSR2BOYK0SfabjzHApMohhwvR8zc5734BfUBoUvMmz+r 9srA== Received: by 10.236.74.37 with SMTP id w25mr23264527yhd.30.1346851662931; Wed, 05 Sep 2012 06:27:42 -0700 (PDT) Received: from fabio-Latitude-E6410.cps.virtua.com.br ([201.82.136.222]) by mx.google.com with ESMTPS id o5sm1653022anm.17.2012.09.05.06.27.40 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Sep 2012 06:27:41 -0700 (PDT) From: Fabio Estevam To: artem.bityutskiy@linux.intel.com Subject: [PATCH] mtd: gpmi-nand: Improve logging style Date: Wed, 5 Sep 2012 10:27:33 -0300 Message-Id: <1346851653-28117-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.177 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: marex@denx.de, b32955@freescale.com, linux-mtd@lists.infradead.org, Fabio Estevam X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Fabio Estevam Improve logging style by prefixing the pr_ messages with "gpmi_nand". Signed-off-by: Fabio Estevam Acked-by: Huang Shijie --- drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c index c46be6c..9493507 100644 --- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c +++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c @@ -18,6 +18,9 @@ * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ + +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include #include #include @@ -114,7 +117,7 @@ int common_nfc_set_geometry(struct gpmi_nand_data *this) /* We use the same ECC strength for all chunks. */ geo->ecc_strength = get_ecc_strength(this); if (!geo->ecc_strength) { - pr_err("We get a wrong ECC strength.\n"); + pr_err("wrong ECC strength.\n"); return -EINVAL; } @@ -1685,9 +1688,9 @@ static int __init gpmi_nand_init(void) err = platform_driver_register(&gpmi_nand_driver); if (err == 0) - printk(KERN_INFO "GPMI NAND driver registered. (IMX)\n"); + pr_info("driver registered.\n"); else - pr_err("i.MX GPMI NAND driver registration failed\n"); + pr_err("driver registration failed.\n"); return err; }