From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751370AbdDADw5 (ORCPT ); Fri, 31 Mar 2017 23:52:57 -0400 Received: from smtprelay0075.hostedemail.com ([216.40.44.75]:40411 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751089AbdDADw4 (ORCPT ); Fri, 31 Mar 2017 23:52:56 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:968:988:989:1260:1277:1311:1313:1314:1345:1359:1373: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:3871:3872:3873:4321:4362:5007:8660:10004:10400:10848:11232:11658:11914:12740:12760:12895:13069:13148:13230:13311:13357:13439:14659:14721:21080:21433:21451:30029:30030:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: slope92_7068a8a53ea2f X-Filterd-Recvd-Size: 1940 Message-ID: <1491018770.27353.35.camel@perches.com> Subject: Re: [PATCH 001/001] drivers/staging/vt6656/main_usb.c: checkpatch warning From: Joe Perches To: Al Viro Cc: Chewie Lin , greg@kroah.com, forest@alittletooquiet.net, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Date: Fri, 31 Mar 2017 20:52:50 -0700 In-Reply-To: <20170401034623.GE29622@ZenIV.linux.org.uk> References: <20170401015919.9181-1-linsh@oregonstate.edu> <20170401015919.9181-2-linsh@oregonstate.edu> <20170401033239.GD29622@ZenIV.linux.org.uk> <1491017782.27353.33.camel@perches.com> <20170401034623.GE29622@ZenIV.linux.org.uk> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.3-0ubuntu0.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2017-04-01 at 04:46 +0100, Al Viro wrote: > On Fri, Mar 31, 2017 at 08:36:22PM -0700, Joe Perches wrote: > > On Sat, 2017-04-01 at 04:32 +0100, Al Viro wrote: > > > On Fri, Mar 31, 2017 at 06:59:19PM -0700, Chewie Lin wrote: > > > > Replace string with formatted arguments in the dev_warn() call. It removes > > > > the checkpatch warning: > > > > > > > > WARNING: Prefer using "%s", __func__ to embedded function names > > > > [] > > > Again, checkpatch warning is badly written > > > > In your opinion, what wording would be better? > > MILD SUGGESTION: don't spell the function name out in format strings; > "this_function: foo is %d", n > might be better off as > "%s: foo is %d", __func__, n > in case you ever move it to another function or rename your function. Thank you sir, may I have another. checkpatch messages are single line.