Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756191AbbDGOeL (ORCPT ); Tue, 7 Apr 2015 10:34:11 -0400 Received: from smtprelay0132.hostedemail.com ([216.40.44.132]:38248 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753050AbbDGOeH (ORCPT ); Tue, 7 Apr 2015 10:34:07 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::,RULES_HIT:41:355:379:541:599:800:960:968:973:988:989:1183:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:3138:3139:3140:3141:3142:3354:3622:3653:3865:3866:3867:3868:3870:3871:3872:3873:3874:4250:4321:5007:6261:7875:7903:7974:10004:10400:10848:10967:11026:11232:11473:11658:11914:12296:12517:12519:12663:12740:13069:13311:13357:14096:14097:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: lead67_23ca63848880b X-Filterd-Recvd-Size: 2825 Date: Tue, 7 Apr 2015 10:34:04 -0400 From: Steven Rostedt To: Joe Perches Cc: Juri Lelli , Borislav Petkov , Ingo Molnar , LKML , "Peter Zijlstra (Intel)" , Juri Lelli Subject: Re: [PATCH] sched/core: Drop debugging leftover trace_printk call Message-ID: <20150407103404.49028491@gandalf.local.home> In-Reply-To: <1428416773.20888.100.camel@perches.com> References: <1428050570-21041-1-git-send-email-bp@alien8.de> <5523E006.4050507@arm.com> <1428415297.20888.92.camel@perches.com> <20150407101036.59f1427e@gandalf.local.home> <1428416773.20888.100.camel@perches.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1882 Lines: 52 On Tue, 07 Apr 2015 07:26:13 -0700 Joe Perches wrote: > On Tue, 2015-04-07 at 10:10 -0400, Steven Rostedt wrote: > > On Tue, 07 Apr 2015 07:01:37 -0700 > > Joe Perches wrote: > > > > > o Please add a test for $realfile !~ m@kernel/trace/@ > > > or maybe $realfile !~ /(?:trace|tracing)/ > > > o ERROR seems a bit strong, WARN is probably good enough > > > > I'm thinking ERROR is good. There's no reason to have it. In fact, you > > must never have it. Looking at the other ERROR() conditions, I say this > > Look at trace_printk in fs/ext4/inline.c > Yeah, I've stumbled on that one before and looked and said to myself "WTF". But as it is masked around DEBUG, I let it slide. I still don't like it, because it really should be a tracepoint instead. The problem with trace_printk(), is that it is either all on or all off. You can not pick and choose, and they clutter the trace. I may send patches to remove that anyway. > It's in a section guarded by a CONFIG_FOO_DEBUG > block. Is the use there an error? Perhaps not > and I think it better if checkpatch ERROR messages > are more definitive. > > > is just as strong and perhaps even stronger. You have ERROR() for > > trailing white space. This is much worse than that. > > I'm not much of a fan of that one, nor of most > of the ERROR uses in checkpatch actually. > > I think it might be better if all of the checkpatch > whitespace/style related messages were WARN not ERROR. I agree. I still rather have this be an ERROR and not a WARN, because I rather avoid even those that encapsulate it with CONFIG_FOO_DEBUG. -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/