Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932220AbbBTSDc (ORCPT ); Fri, 20 Feb 2015 13:03:32 -0500 Received: from smtprelay0151.hostedemail.com ([216.40.44.151]:36840 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932089AbbBTSDa (ORCPT ); Fri, 20 Feb 2015 13:03:30 -0500 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:1373:1437:1515:1516:1518:1534:1541:1566:1593:1594:1711:1714:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3622:3865:3866:3867:3870:3871:3872:3874:4321:4605:5007:6119:6261:6742:7903:10004:10400:10848:11026:11232:11658:11914:12114:12517:12519:12740:13069:13095:13311:13357: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: soda43_3b19e8cc75a08 X-Filterd-Recvd-Size: 2837 Message-ID: <1424455404.18211.10.camel@perches.com> Subject: Re: [PATCH v2] x86: fix output of show_stack_log_lvl() From: Joe Perches To: Linus Torvalds Cc: Masami Hiramatsu , Thomas Gleixner , luto@amacapital.net, fruggeri@arista.com, Steven Rostedt , a.ryabinin@samsung.com, akpm@linux-foundation.org, hpa@zytor.com, Adrien Schildknecht , linux-kernel@vger.kernel.org, Alexander van Heukelum , bp@alien8.de, adech.fo@gmail.com, x86@kernel.org, mingo@redhat.com Date: Fri, 20 Feb 2015 10:03:24 -0800 In-Reply-To: References: <1424385796-28910-1-git-send-email-adrien+dev@schischi.me> <1424399661-20327-1-git-send-email-adrien+dev@schischi.me> <20150219234548.2e4412cb@grimm.local.home> <20150220120506.1c3812a8@grimm.local.home> <1424454016.18211.8.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.7-0ubuntu1 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 Content-Length: 1488 Lines: 45 On Fri, 2015-02-20 at 09:52 -0800, Linus Torvalds wrote: > On Feb 20, 2015 9:40 AM, "Joe Perches" wrote: > > > > There are still a few dozen uses of this pattern: > > > > pr_info("Some message line 1\nNext line: "); > > for (...) > > pr_cont(" part %d", i); > > pr_cont('\n"); > > That, btw, is a buglet anyway. > > We don't really support newlines in the middle of printouts any more. We > used to, but it for deprecated. It doesn't really work with the "printk is > a message packet" model. > > Admittedly neither does the "pr_cont()" model, but pr_cont() is > fundamentally useful, in a way that newlines in the middle are not (they > can always just be split up, while the pr_cont() cannot generally be > combined). > > So we should generally try to get rid of the newline in the middle cases. True. Also fix the pr_debug/dev_dbg cases like drivers/dma/ppc4xx/adma.c: static void prep_dma_pq_dbg(int id, dma_addr_t *dst, dma_addr_t *src, unsigned int src_cnt) { int i; pr_debug("\n%s(%d):\nsrc: ", __func__, id); for (i = 0; i < src_cnt; i++) pr_debug("\t0x%016llx ", src[i]); pr_debug("dst: "); for (i = 0; i < 2; i++) pr_debug("\t0x%016llx ", dst[i]); } -- 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/