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: 11667 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1Se1oM-0004DM-QA for patchwork@linuxtv.org; Mon, 11 Jun 2012 12:25:26 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.75/mailfrontend-3) with esmtp for id 1Se1oM-0002fM-E2; Mon, 11 Jun 2012 12:25:26 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752033Ab2FKKZX (ORCPT ); Mon, 11 Jun 2012 06:25:23 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:58647 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751330Ab2FKKZW (ORCPT ); Mon, 11 Jun 2012 06:25:22 -0400 Received: by pbbrp8 with SMTP id rp8so5391906pbb.19 for ; Mon, 11 Jun 2012 03:25:22 -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=bI1n94tXXIfu2N8yATlyrQYiThwKxGv7oab2mY1owsA=; b=Q2kLDxccxEOVhQfhtS+oA0gb6RVbSrdVQwhzwx5eey2IJC9k7bJJ/WaqIQEJd9R5+3 tEo8dLXc9OtLIO9d1ZpG4X462OCDGIAscHJsS3TpVeXEnkjOk+utjke4xxBcqgtHOYXB wYM/zK3Wl5dXzkcnfgK/mF4JNua8/moxxMr5yHN1mpzU5cp2oF5eRi0597e/zQ459H+a Z1S/YBay369zNvHiZqEvNKxXDy1ZSFoOW+XDIZ976Zhjrtp315/eouJZH9in7Q1cGMQy Zjws90PvfbRq5Wrgt79XN26B3Fz5gC230yrJEmUiNJB1psaHpsEw6hVsdFv8gQ3ppnVv ZLlQ== 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: ALoCoQkMNP3dF1TVCETyYllRRfHLOoIjGVyBcC9kBBH5/Uc6FdeLK3tCQEbo0CGioR/cAysuDq2j Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.6.11.101816 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_MEDIA_BODY 0, __CP_URI_IN_BODY 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MULTIPLE_RCPTS_CC_X2 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS ' 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(