Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5976532ybe; Tue, 10 Sep 2019 11:36:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBzVO2EDGTmXPAqRbOw7Hs7p8nhyNpjg4zL22mD+5ZMNwFLhqtSTY0EBm9Ns6rYvDflPeD X-Received: by 2002:a17:906:fd0:: with SMTP id c16mr25849665ejk.213.1568140602607; Tue, 10 Sep 2019 11:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568140602; cv=none; d=google.com; s=arc-20160816; b=Ti1Bg73PMw9da8Q9tsjcrL3s++fZIL39yE5RFsS0SI+drdNy92u1sHy24UhJLNhglP xxk4j0A41BJca1Sy7NX9JEEsivO2iJ5SKSPtu+p0XT3s7nPGd9aHAdNRerLL/yCWLVGP nbAIa3rqitKVy+/fghKpYWV8bfpRe4iqGaX8dW4QaChzKrsfc1dSjT9svo6taT+GtKeI Dgxpsq4MXlwF1Q1LBNO02RnhOlXY/vMK46yzTw0slT7qBwvcWhEV48jsXq+d3BLhyMwp zhMr8Z2l1Lmfa+ojGfqmEWTMpaxyjEkcWfLL1puyve0w32TiA4w4N8bCccdInSNTZOds IDgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=8fcbl6jj+BXToQYo/Kb1M0QcDEweae3qTA+fZ1CxgFs=; b=K9BVByr8uhInrOYkSWvD3BPy8+odU9ejY8mZqwMhpv+49eTL3laeKR0y5Gh8tHq1Qg 8kUcRpMf42MSbWr1pNG+vDxHsnxuu2KTCDTUWCWAcWi1R1TAfG0zpq9WExSpe/HfcXFc 2WL+2givZEZSYTBjnWIvhZVA7mvwfn2QihVh2gUTYAzgMZqEkjt8vKkVZFY6T67GNHJk 5j+9ETCChuWzV/6ZJO8qT1ndYrhoYpK0L3yazZLS4qmLt9R5m19RgSGCvN/ebPvfVeNK 4u3INr4jdSegO5c5jLUSYCQ3Xw1GUDmUHa/ckUx+pSLdu5v3LKSTO37wewgINDgeoogp +ipQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3si11256108eda.285.2019.09.10.11.36.18; Tue, 10 Sep 2019 11:36:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390196AbfIIQzA (ORCPT + 99 others); Mon, 9 Sep 2019 12:55:00 -0400 Received: from smtprelay0227.hostedemail.com ([216.40.44.227]:45554 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727781AbfIIQzA (ORCPT ); Mon, 9 Sep 2019 12:55:00 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id DD120100E86C0; Mon, 9 Sep 2019 16:54:58 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:599:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1981:2194:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3870:3871:3874:4250:4321:4419:5007:6117:10004:10400:10848:11026:11232:11657:11658:11914:12043:12296:12297:12438:12740:12760:12895:13069:13161:13229:13311:13357:13439:13972:14181:14659:14721:21080:21451:21627:21740:30029:30054:30069:30091,0,RBL:47.151.152.152:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: joke95_e38df7958c09 X-Filterd-Recvd-Size: 2099 Received: from XPS-9350.home (unknown [47.151.152.152]) (Authenticated sender: joe@perches.com) by omf16.hostedemail.com (Postfix) with ESMTPA; Mon, 9 Sep 2019 16:54:57 +0000 (UTC) Message-ID: Subject: Re: [Patch 09/13] media: am437x-vpfe: fix function trace debug log From: Joe Perches To: Benoit Parrot , Hans Verkuil Cc: Prabhakar Lad , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 09 Sep 2019 09:54:56 -0700 In-Reply-To: <20190909162743.30114-10-bparrot@ti.com> References: <20190909162743.30114-1-bparrot@ti.com> <20190909162743.30114-10-bparrot@ti.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.32.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-09-09 at 11:27 -0500, Benoit Parrot wrote: > checkpatch.pl nows reports several: > WARNING: Prefer using '"%s...", __func__' to using '', > this function's name, in a string > > So fix these for the whole driver. Most of these seem to be function tracing comments that should probably be removed instead. The generic kernel facility ftrace works well. > diff --git a/drivers/media/platform/am437x/am437x-vpfe.c b/drivers/media/platform/am437x/am437x-vpfe.c [] > @@ -466,7 +466,7 @@ static void vpfe_ccdc_config_ycbcr(struct vpfe_ccdc *ccdc) > struct ccdc_params_ycbcr *params = &ccdc->ccdc_cfg.ycbcr; > u32 syn_mode; > > - vpfe_dbg(3, vpfe, "vpfe_ccdc_config_ycbcr:\n"); > + vpfe_dbg(3, vpfe, "%s:\n", __func__); Remove this instead > /* > * first restore the CCDC registers to default values > * This is important since we assume default values to be set in > @@ -598,7 +598,7 @@ static void vpfe_ccdc_config_raw(struct vpfe_ccdc *ccdc) > unsigned int syn_mode; > unsigned int val; > > - vpfe_dbg(3, vpfe, "vpfe_ccdc_config_raw:\n"); > + vpfe_dbg(3, vpfe, "%s:\n", __func__); here too, etc...