From patchwork Fri Feb 28 21:23:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 3744601 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C50C1BF13A for ; Fri, 28 Feb 2014 21:24:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 060F5202A7 for ; Fri, 28 Feb 2014 21:24:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 16D562028D for ; Fri, 28 Feb 2014 21:24:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753057AbaB1VYa (ORCPT ); Fri, 28 Feb 2014 16:24:30 -0500 Received: from qmta04.emeryville.ca.mail.comcast.net ([76.96.30.40]:58943 "EHLO qmta04.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752466AbaB1VXH (ORCPT ); Fri, 28 Feb 2014 16:23:07 -0500 Received: from omta19.emeryville.ca.mail.comcast.net ([76.96.30.76]) by qmta04.emeryville.ca.mail.comcast.net with comcast id XrB61n0081eYJf8A4xP7Ei; Fri, 28 Feb 2014 21:23:07 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by omta19.emeryville.ca.mail.comcast.net with comcast id XxP61n00F0MU7Qa01xP6N9; Fri, 28 Feb 2014 21:23:07 +0000 Received: from lorien.sisa.samsung.com (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id DA46841103; Fri, 28 Feb 2014 14:23:05 -0700 (MST) From: Shuah Khan To: m.chehab@samsung.com Cc: Shuah Khan , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, shuahkhan@gmail.com Subject: [PATCH 1/3] media/drx39xyj: fix pr_dbg undefined compile errors when DJH_DEBUG is defined Date: Fri, 28 Feb 2014 14:23:00 -0700 Message-Id: <88f91cfa309e47267d31f9ce176f839f6e309d95.1393621530.git.shuah.kh@samsung.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1393622587; bh=83iJZP2tHumyaiOW0f/LL9spG9SsaYb/0yOOp4+eETc=; h=Received:Received:Received:From:To:Subject:Date:Message-Id: MIME-Version:Content-Type; b=iOTWUiIXsiMB6VLHOyBCXYQIPwO4hzCgx2RkNg+cQOn+yJW38eM/nNnncqGhrgt1v pIWFMEMRO31UqNe1egmL/OkM9UyAVH2sVJ++e4fvjU+O+vaymp8JSC/KbLuJzNFm18 UaF90Dj8z0ShNQf4Uazx7YsRfLr1Y4u2mLKW3hJe1Wx+T/6Ofc6+Gkh0+3kTOQ7yRb YPbPXvnc1oqOdKp+FaLbHxPAcxalai1sHXqLef/bR8dPOTbO7dBSK6ngkhoZIEEy4N lXH6ypfedgmGcwB1GHAnED0liTY1Kf3QJMNelKV8DoKR3LoV4nzL7bK5v8I5Dd5wwj 36udfTQ34oT8w== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP drxj.c fails to compile with the following errors when DJH_DEBUG is defined. drivers/media/dvb-frontends/drx39xyj/drxj.c:1567:2: error: implicit declaration of function ‘pr_dbg’ [-Werror=implicit-function-declaration] pr_dbg("drx3933 i2c operation addr=%x i2c=%p, wc=%x rc=%x\n", ^ Signed-off-by: Shuah Khan --- drivers/media/dvb-frontends/drx39xyj/drxj.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/drx39xyj/drxj.c b/drivers/media/dvb-frontends/drx39xyj/drxj.c index ed68c52..a78af4e 100644 --- a/drivers/media/dvb-frontends/drx39xyj/drxj.c +++ b/drivers/media/dvb-frontends/drx39xyj/drxj.c @@ -1562,7 +1562,7 @@ int drxbsp_i2c_write_read(struct i2c_device_addr *w_dev_addr, .flags = I2C_M_RD, .buf = r_data, .len = r_count}, }; - pr_dbg("drx3933 i2c operation addr=%x i2c=%p, wc=%x rc=%x\n", + pr_debug("drx3933 i2c operation addr=%x i2c=%p, wc=%x rc=%x\n", w_dev_addr->i2c_addr, state->i2c, w_count, r_count); if (i2c_transfer(state->i2c, msg, 2) != 2) { @@ -20640,7 +20640,7 @@ static int drx39xxj_set_frontend(struct dvb_frontend *fe) for (i = 0; i < 2000; i++) { fe_status_t status; drx39xxj_read_status(fe, &status); - pr_dbg("i=%d status=%d\n", i, status); + pr_debug("i=%d status=%d\n", i, status); msleep(100); i += 100; } @@ -20663,7 +20663,7 @@ static int drx39xxj_i2c_gate_ctrl(struct dvb_frontend *fe, int enable) int result; #ifdef DJH_DEBUG - pr_dbg("i2c gate call: enable=%d state=%d\n", enable, + pr_debug("i2c gate call: enable=%d state=%d\n", enable, state->i2c_gate_open); #endif