From patchwork Mon Jun 11 10:13:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 9183 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 7156E23E4F for ; Mon, 11 Jun 2012 10:25:26 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 3FE4AA188AA for ; Mon, 11 Jun 2012 10:25:26 +0000 (UTC) Received: by ggnf1 with SMTP id f1so2556512ggn.11 for ; Mon, 11 Jun 2012 03:25:25 -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=bI1n94tXXIfu2N8yATlyrQYiThwKxGv7oab2mY1owsA=; b=T3Sqt7NaOWZjmUoghWEzdEOS6NztjDyIukdoVsp3arlJk2PGEY2BO4eB7WczGnvz+t oTnuYuSYHIuY3sntoTnVGLgs9pGFUV6tVwZnOs4clPxLTPeAYdrsQX2pzRqO94gW4oU7 Fo9nDulc6nrrK4HA+SokiI92FkmPRsdp7IBkNiGvaYmjzM6upjPvfNccAncFi+phZXsz dU+iq19AobJgzQLK5+FI+vkgusJzNXI52jHJ6B39Rx62B4SgcKaEYYm5DN4oWDBiA4aN LTYnXdLUx+aUIpK5pzlDqfaGxXz2CfLQLgS2x3zRmTJA5hfG1DBauIhgHIlnfPdlKFrG c9dw== Received: by 10.50.193.196 with SMTP id hq4mr5800512igc.57.1339410325491; Mon, 11 Jun 2012 03:25:25 -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.24.148 with SMTP id v20csp99244ibb; Mon, 11 Jun 2012 03:25:25 -0700 (PDT) Received: by 10.68.194.201 with SMTP id hy9mr24894031pbc.69.1339410322283; Mon, 11 Jun 2012 03:25:22 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id sp1si9768196pbc.80.2012.06.11.03.25.22 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jun 2012 03:25:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.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-pz0-f50.google.com with SMTP id h15so6218623dan.37 for ; Mon, 11 Jun 2012 03:25:22 -0700 (PDT) Received: by 10.68.131.35 with SMTP id oj3mr8318161pbb.156.1339410321974; Mon, 11 Jun 2012 03:25:21 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id io2sm18030423pbc.24.2012.06.11.03.25.17 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jun 2012 03:25:21 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: t.stanislaws@samsung.com, k.debski@samsung.com, s.nawrocki@samsung.com, snjw23@gmail.com, kyungmin.park@samsung.com, mchehab@infradead.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 2/3] [media] s5p-mfc: Replace printk with pr_* functions Date: Mon, 11 Jun 2012 15:43:53 +0530 Message-Id: <1339409634-13657-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1339409634-13657-1-git-send-email-sachin.kamat@linaro.org> References: <1339409634-13657-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQkqdFzB6aW/omC/3a9bSWDSRsr81NoAb+029NcNhipBIcOMEbL8lXsvyohTGhcwh4p7P3Ra Replace printk with pr_* functions to silence checkpatch warnings. Signed-off-by: Sachin Kamat --- drivers/media/video/s5p-mfc/s5p_mfc_debug.h | 6 +++--- drivers/media/video/s5p-mfc/s5p_mfc_opr.c | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/media/video/s5p-mfc/s5p_mfc_debug.h b/drivers/media/video/s5p-mfc/s5p_mfc_debug.h index ecb8616..fea2c6e 100644 --- a/drivers/media/video/s5p-mfc/s5p_mfc_debug.h +++ b/drivers/media/video/s5p-mfc/s5p_mfc_debug.h @@ -23,7 +23,7 @@ extern int debug; #define mfc_debug(level, fmt, args...) \ do { \ if (debug >= level) \ - printk(KERN_DEBUG "%s:%d: " fmt, \ + pr_debug("%s:%d: " fmt, \ __func__, __LINE__, ##args); \ } while (0) #else @@ -35,13 +35,13 @@ extern int debug; #define mfc_err(fmt, args...) \ do { \ - printk(KERN_ERR "%s:%d: " fmt, \ + pr_err("%s:%d: " fmt, \ __func__, __LINE__, ##args); \ } while (0) #define mfc_info(fmt, args...) \ do { \ - printk(KERN_INFO "%s:%d: " fmt, \ + pr_info("%s:%d: " fmt, \ __func__, __LINE__, ##args); \ } while (0) diff --git a/drivers/media/video/s5p-mfc/s5p_mfc_opr.c b/drivers/media/video/s5p-mfc/s5p_mfc_opr.c index e6217cb..6d3f398 100644 --- a/drivers/media/video/s5p-mfc/s5p_mfc_opr.c +++ b/drivers/media/video/s5p-mfc/s5p_mfc_opr.c @@ -12,6 +12,8 @@ * published by the Free Software Foundation. */ +#define pr_fmt(fmt) "s5p-mfc: " fmt + #include "regs-mfc.h" #include "s5p_mfc_cmd.h" #include "s5p_mfc_common.h" @@ -187,8 +189,7 @@ int s5p_mfc_alloc_codec_buffers(struct s5p_mfc_ctx *ctx) dev->alloc_ctx[MFC_BANK1_ALLOC_CTX], ctx->bank1_size); if (IS_ERR(ctx->bank1_buf)) { ctx->bank1_buf = NULL; - printk(KERN_ERR - "Buf alloc for decoding failed (port A)\n"); + pr_err("Buf alloc for decoding failed (port A)\n"); return -ENOMEM; } ctx->bank1_phys = s5p_mfc_mem_cookie(