From patchwork Thu Dec 10 14:00:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: matrandg@cisco.com X-Patchwork-Id: 7819081 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6221FBEEE1 for ; Thu, 10 Dec 2015 14:01:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7746220555 for ; Thu, 10 Dec 2015 14:01:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 571E720547 for ; Thu, 10 Dec 2015 14:01:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752402AbbLJOA7 (ORCPT ); Thu, 10 Dec 2015 09:00:59 -0500 Received: from aer-iport-3.cisco.com ([173.38.203.53]:4189 "EHLO aer-iport-3.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752383AbbLJOAk (ORCPT ); Thu, 10 Dec 2015 09:00:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1071; q=dns/txt; s=iport; t=1449756040; x=1450965640; h=from:to:cc:subject:date:message-id; bh=RxoglDpLcnrVfklPNCqBIuvJnPN+BeueQcId4khWFKk=; b=Oosky0KVkgEkTsVLo/8749hws4TSC1LRoH/0/JkC2cRVdDu2UbX/JgjX XOU2knv4i6XomjZoeTW+m5Vlb36CHkYUbxSzoX1nUrrxDpZ/gx9N7X8+7 AMUfY+yfavOATqG6P1z1P0asuKmS1V++3V14qYFEAhnfGQWy30hCuVG62 k=; X-IronPort-AV: E=Sophos;i="5.20,408,1444694400"; d="scan'208";a="607135934" Received: from aer-iport-nat.cisco.com (HELO aer-core-1.cisco.com) ([173.38.203.22]) by aer-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Dec 2015 14:00:38 +0000 Received: from mrapc.cisco.com (dhcp-10-54-92-42.cisco.com [10.54.92.42]) by aer-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id tBAE0b5W020203; Thu, 10 Dec 2015 14:00:37 GMT From: matrandg@cisco.com To: linux-media@vger.kernel.org Cc: Mats Randgaard Subject: [PATCH] tc358743: Print timings only when debug level is set Date: Thu, 10 Dec 2015 15:00:31 +0100 Message-Id: <1449756031-456-1-git-send-email-matrandg@cisco.com> X-Mailer: git-send-email 2.5.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-14.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY, USER_IN_DEF_DKIM_WL autolearn=unavailable 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 From: Mats Randgaard Signed-off-by: Mats Randgaard --- drivers/media/i2c/tc358743.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index cc38896..e9129d1 100644 --- a/drivers/media/i2c/tc358743.c +++ b/drivers/media/i2c/tc358743.c @@ -857,15 +857,16 @@ static void tc358743_format_change(struct v4l2_subdev *sd) if (tc358743_get_detected_timings(sd, &timings)) { enable_stream(sd, false); - v4l2_dbg(1, debug, sd, "%s: Format changed. No signal\n", + v4l2_dbg(1, debug, sd, "%s: No signal\n", __func__); } else { if (!v4l2_match_dv_timings(&state->timings, &timings, 0, false)) enable_stream(sd, false); - v4l2_print_dv_timings(sd->name, - "tc358743_format_change: Format changed. New format: ", - &timings, false); + if (debug) + v4l2_print_dv_timings(sd->name, + "tc358743_format_change: New format: ", + &timings, false); } if (sd->devnode)