From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751274AbdH2RdS (ORCPT ); Tue, 29 Aug 2017 13:33:18 -0400 Received: from smtprelay0239.hostedemail.com ([216.40.44.239]:36031 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750815AbdH2RdR (ORCPT ); Tue, 29 Aug 2017 13:33:17 -0400 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:1593:1594:1711:1730:1747:1777:1792:2194:2199:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:5007:6742:7903:9108:10004:10400:10848:11232:11658:11914:12296:12555:12700:12737:12740:12760:12895:12986:13069:13141:13163:13229:13230:13311:13357:13439:14181:14659:14721:21080:21088:21220:21451:21627:30012:30054:30060: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: form33_90a7d50056723 X-Filterd-Recvd-Size: 2703 Message-ID: <1504027992.2040.30.camel@perches.com> Subject: Re: printk: what is going on with additional newlines? From: Joe Perches To: Linus Torvalds Cc: Pavel Machek , Sergey Senozhatsky , Petr Mladek , Steven Rostedt , Jan Kara , Andrew Morton , Jiri Slaby , Andreas Mohr , Tetsuo Handa , Linux Kernel Mailing List , Sergey Senozhatsky Date: Tue, 29 Aug 2017 10:33:12 -0700 In-Reply-To: References: <20170815025625.1977-1-sergey.senozhatsky@gmail.com> <20170828090521.GA25025@amd> <1504026634.2040.27.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 Tue, 2017-08-29 at 10:20 -0700, Linus Torvalds wrote: > On Tue, Aug 29, 2017 at 10:10 AM, Joe Perches wrote: > > That's simply false. > > > > It was never true until you made it a requirement. > > (it's not a bad requirement, but it did change behavior) > > Oh, it changed behavior, yes (and for kernel code we do that, and > require people to change). > > But even before it was technically required, it was very much supposed > to be there as a marker. KERN_CONT has existed for about a decade. Which is very much not "forever" in kernel terms. > It was added in commit 474925277671 ("printk: add KERN_CONT > annotation") back in 2007, with a comment that said - at that time: Yeah, I remember things too. > /* > * Annotation for a "continued" line of log printout (only done after a > * line that had no enclosing \n). Only to be used by core/arch code > * during early bootup (a continued line is not SMP-safe otherwise). > */ And note the "core/arch code during bootup" bit. Look, it's not fundamentally a "bad" requirement. It was just not "always required". And silently slipping in the change because you were unhappy with adding newlines to some printks was, at best, poor form. Your change broke a bunch of output.