From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753014AbdJTXJG (ORCPT ); Fri, 20 Oct 2017 19:09:06 -0400 Received: from smtprelay0241.hostedemail.com ([216.40.44.241]:50633 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752605AbdJTXJF (ORCPT ); Fri, 20 Oct 2017 19:09:05 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:973: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:2915:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3871:3872:3873:3874:4321:5007:6119:6742:7775:7903:10004:10400:10848:11232:11658:11914:12295:12740:12760:12895:13069:13161:13180:13229:13311:13357:13439:14096:14097:14659:21080:21434:21627:30012:30054:30069:30070: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: hen96_891c140cbdc5c X-Filterd-Recvd-Size: 2528 Message-ID: <1508540940.30181.9.camel@perches.com> Subject: Re: [PATCH] MIPS: kernel: proc: Remove spurious white space in cpuinfo From: Joe Perches To: "Maciej W. Rozycki" Cc: Aleksandar Markovic , linux-mips@linux-mips.org, Dragan Cecavac , Aleksandar Markovic , Douglas Leung , Goran Ferenc , James Hogan , James Hogan , linux-kernel@vger.kernel.org, "Maciej W. Rozycki" , Miodrag Dinic , Paul Burton , Paul Burton , Petar Jovanovic , Raghu Gandham , Ralf Baechle Date: Fri, 20 Oct 2017 16:09:00 -0700 In-Reply-To: References: <1508509203-30661-1-git-send-email-aleksandar.markovic@rt-rk.com> <1508512648.30181.1.camel@perches.com> <1508533736.30181.7.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 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 Fri, 2017-10-20 at 22:46 +0100, Maciej W. Rozycki wrote: > On Fri, 20 Oct 2017, Joe Perches wrote: > > > > > That's somewhat unpleasant code as it formats a fmt string > > > > and the compiler can not verify fmt and args. > > > > > > > > Perhaps something like the below is preferable: > > > > > > Hmm, what problem exactly are you trying to solve with code that has > > > worked just fine for 16 years now? > > > > The compiler cannot verify fmt and args. > > You have stated that already. Why is that a problem? Jeeze, perhaps you don't like the word perhaps. There is no absolute defect here. There are unnecessary pushes to stack that are unwound by the compiler. Stylistically, format/argument mismatches can cause errors. It's generally bad form and error prone to use non constant strings as formats. Note it's not signed and is a simple suggestion. If you don't like it, don't do anything with it.