Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp48405imm; Tue, 19 Jun 2018 15:40:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ2ApRmMLxGIO+uRdMQeq0MBXOU70yKyxaSruq/CoeJ5q11jXL1DWW3cs6Vd2nh1gN3Aso8 X-Received: by 2002:a17:902:8ecb:: with SMTP id x11-v6mr21334825plo.308.1529448011208; Tue, 19 Jun 2018 15:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529448011; cv=none; d=google.com; s=arc-20160816; b=soXLxB8DGRyhc+0rqiQpODX4ZdmxkosD9GCISIh054UyT5pdkxcqr89Anaz9fHfRNt 9Qea9HRZF3LRU3xbUibjJUae1GvrWNr33ilV/JsgCN0lPt1fZxqTRBPTIUeDFJ0ZRSwZ XEcgO38HfMiOfM39d0hEtPGftvQuJQ27Elo2XuneB9ccAta5FYY3n8PWwSEO4DqRr/4o AoDcnI/h0npOGcKb5ONkIjOxdrnC2nSCrSS+Dd4AZymqMixt7rDErtTD70CO5g0dy0bt R/bAoCmUUl5pOT/s5T0LOL5p03T4rC7QtL+AX7YLegHj4ar+7UbOQ8r9GIw/1TgdrRLl U3ig== 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 :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=8mLdNYy2looNUDTgM1bFXKnN2F2xF+n5Gtbsd9PAnIA=; b=gr01UA0BO2NeZ1E10DnnljBtg99ld2gOSP0skdVlryzkJ4U3aNbp5UYPKa0RTJ6JH9 VLaWX+CwbDeXd0rZPXyuUOMthsA54pWH21hcDrRmFBT94O+4fvNecJwM3VrKn85VGbba oRZFytuHuAPhe2brIGCCVBLNNsZaziAhw7i1u+XnZX0QHsS7J4s+ImM9vyt+7irPAOh8 8GLtFg/adczkIugzUg+rPk9o46YuzNVT1lW8SdGvHnfjMyaXxnNPIQYnz2AV8qpyszi6 ZW2zszxZPb4r3G5IgEfr2Z6gIwrOfwehZkmMZxjF/BYEfQJDTAR4w6wg8fbuiI/nogOY Vjzg== 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 o87-v6si734180pfi.295.2018.06.19.15.39.57; Tue, 19 Jun 2018 15:40:11 -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 S1753202AbeFSWhm (ORCPT + 99 others); Tue, 19 Jun 2018 18:37:42 -0400 Received: from smtprelay0130.hostedemail.com ([216.40.44.130]:50854 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750949AbeFSWhk (ORCPT ); Tue, 19 Jun 2018 18:37:40 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id D46BA181D3419; Tue, 19 Jun 2018 22:37:39 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3870:4321:4605:5007:10004:10400:10848:11026:11232:11473:11658:11914:12043:12295:12438:12740:12760:12895:13069:13161:13229:13311:13357:13439:14181:14659:14721:21080:21451:21627:30003:30012:30029:30054:30060:30090:30091,0,RBL:47.151.150.235:@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:26,LUA_SUMMARY:none X-HE-Tag: hall50_7cd9f9c20dd23 X-Filterd-Recvd-Size: 2121 Received: from XPS-9350.home (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf06.hostedemail.com (Postfix) with ESMTPA; Tue, 19 Jun 2018 22:37:37 +0000 (UTC) Message-ID: <3013aae1803c096645887864d1b161efbfba7c77.camel@perches.com> Subject: Re: [PATCH 1/5] net: emaclite: Use __func__ instead of hardcoded name From: Joe Perches To: Andy Shevchenko , Radhey Shyam Pandey Cc: "David S. Miller" , Andrew Lunn , Michal Simek , netdev , linux-arm Mailing List , Linux Kernel Mailing List Date: Tue, 19 Jun 2018 15:37:36 -0700 In-Reply-To: References: <1529320103-7711-1-git-send-email-radhey.shyam.pandey@xilinx.com> <1529320103-7711-2-git-send-email-radhey.shyam.pandey@xilinx.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.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 Wed, 2018-06-20 at 00:36 +0300, Andy Shevchenko wrote: > On Mon, Jun 18, 2018 at 2:08 PM, Radhey Shyam Pandey > wrote: > > Switch hardcoded function name with a reference to __func__ making > > the code more maintainable. Address below checkpatch warning: > > > > WARNING: Prefer using '"%s...", __func__' to using 'xemaclite_mdio_read', > > this function's name, in a string > > + "xemaclite_mdio_read(phy_id=%i, reg=%x) == %x\n", > > > > WARNING: Prefer using '"%s...", __func__' to using 'xemaclite_mdio_write', > > this function's name, in a string > > + "xemaclite_mdio_write(phy_id=%i, reg=%x, val=%x)\n", > > > > For dev_dbg() the __func__ should be completely dropped away. Not really the same. dev_dbg without CONFIG_DYNAMIC_DEBUG does not have the ability to prefix __func__.