From patchwork Mon Jul 16 10:32:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10001 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 2977724024 for ; Mon, 16 Jul 2012 10:33:00 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id ED999A18884 for ; Mon, 16 Jul 2012 10:32:59 +0000 (UTC) Received: by mail-yx0-f180.google.com with SMTP id q6so5189661yen.11 for ; Mon, 16 Jul 2012 03:32:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=6ZLW2Siy1B17yVDVVXEAz5uiW0ObB0PkvJ+lBnOocpU=; b=PoT0FdXPWICmMHTbSkf42JVPJC7XZWZJsVzi2R+wHuO5H55sZZTmlb/EpSAADSNq1H NUcDSfsKU97hdZ/78oYjNI/pJFoUCWMfHuSl/hGIksQc1Ejq9e+wgJ2ttdVPHKQ08yzg cA2Nb4HKgrv/JBJBPIY9smgVG7Rw0p5sn9CHjeUiA6YPjVPqBoj6vr/Fyrv3Id1ADfTJ TKgvmUHY/6TGZ+Hs1pLpeqm5lKsaQzIm8vF+2r4oGz9P3oRZnP0jNoQ94R+fIYZc+Hkv D7LThVDJ1A8BTydqXx+/mlna/ZKeRLl9EsZqq4IEEu1pZUiic8JWr61vUQhp+U3L6VpL 7Sjg== Received: by 10.42.68.65 with SMTP id w1mr5454745ici.57.1342434779472; Mon, 16 Jul 2012 03:32:59 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.241.2 with SMTP id lc2csp6650ibb; Mon, 16 Jul 2012 03:32:58 -0700 (PDT) Received: by 10.68.238.105 with SMTP id vj9mr25584505pbc.111.1342434778825; Mon, 16 Jul 2012 03:32:58 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id wf5si4387608pbc.287.2012.07.16.03.32.58 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jul 2012 03:32:58 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pb0-f50.google.com with SMTP id rr4so11941114pbb.37 for ; Mon, 16 Jul 2012 03:32:58 -0700 (PDT) Received: by 10.68.195.202 with SMTP id ig10mr25233680pbc.37.1342434778472; Mon, 16 Jul 2012 03:32:58 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id hw6sm11649337pbc.73.2012.07.16.03.32.55 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jul 2012 03:32:57 -0700 (PDT) From: Sachin Kamat To: linux-mtd@lists.infradead.org Cc: dwmw2@infradead.org, David.Woodhouse@intel.com, ben-linux@fluff.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 2/6] mtd: s3c2410: Use pr_* instead of printk Date: Mon, 16 Jul 2012 16:02:23 +0530 Message-Id: <1342434747-27622-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1342434747-27622-1-git-send-email-sachin.kamat@linaro.org> References: <1342434747-27622-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQkNDodCZp8VZZXiF/I3kMJiFL+9UtyyDTqMVqOiZFaoV3MdA0SbzadB/GmRMcFjeaJryVZ0 Use pr_* instead of printk. Signed-off-by: Sachin Kamat --- drivers/mtd/nand/s3c2410.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index 8f9267f..2383940 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c @@ -21,6 +21,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define pr_fmt(fmt) "nand-s3c2410: " fmt + #ifdef CONFIG_MTD_NAND_S3C2410_DEBUG #define DEBUG #endif @@ -215,7 +217,8 @@ static int s3c_nand_calc_rate(int wanted, unsigned long clk, int max) pr_debug("result %d from %ld, %d\n", result, clk, wanted); if (result > max) { - printk("%d ns is too big for current clock rate %ld\n", wanted, clk); + pr_err("%d ns is too big for current clock rate %ld\n", + wanted, clk); return -1; }