Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751681AbcJJFsx (ORCPT ); Mon, 10 Oct 2016 01:48:53 -0400 Received: from smtprelay0074.hostedemail.com ([216.40.44.74]:60222 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750991AbcJJFsw (ORCPT ); Mon, 10 Oct 2016 01:48:52 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 30,2,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:599:800:960:968:973:981:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3291:3354:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:4560:5007:6119:6691:7808:7903:8603:10010:10400:10848:11232:11658:11783:11914:12043:12050:12296:12438:12740:13439:13894:14181:14659:14721:21080:21095:21324:21326:21365:21433:21451:30012:30054:30060:30090:30091,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:2:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: hate38_4d1213de1195a X-Filterd-Recvd-Size: 3478 Message-ID: <1476078528.2856.16.camel@perches.com> Subject: Re: [GIT PULL] trivial for 4.9 From: Joe Perches To: Linus Torvalds , Kay Sievers Cc: Jiri Kosina , Colin Ian King , Linux Kernel Mailing List Date: Sun, 09 Oct 2016 22:48:48 -0700 In-Reply-To: References: <1475870688.1945.13.camel@perches.com> <1475871538.1945.15.camel@perches.com> <1475872401.1945.17.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.0-2ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2063 Lines: 63 On Fri, 2016-10-07 at 14:37 -0700, Linus Torvalds wrote: > On Fri, Oct 7, 2016 at 2:06 PM, Linus Torvalds > wrote: > > > > And btw, even without an explicit KERN_, you should still not > > get any interleaving. Only an _explicit_ KERN_CONT should cause > > interleaving > > > Btw, note the "should" there. Because we do seem to have broken that > _again_. It worked fine at some point, but lookie here: So, I've gone back to each release from 3.6 to 3.3 looking for a case where interleaving printks inserted newlines automatically for different processes. I can't find one. Neither in dmesg nor in /dev/kmsg. What version of the kernel do _you_ think had this behavior? > commit 61e99ab8e35a88b8c4d0f80d3df9ee16df471be5 > Author: Joe Perches > Date: Mon Jul 30 14:40:21 2012 -0700 > > printk: remove the now unnecessary "C" annotation for KERN_CONT > > Now that all KERN_ uses are prefixed with ASCII SOH, there is no > need for a KERN_CONT. Keep it backward compatible by adding #define > KERN_CONT "" > > Joe, you *are* the problem here. It's not any release version from 3.3 to 3.6 that I can find. Perhaps you have faster processes than I have to isolate this. > So you are literally the person who broke this. No, I don't think so. Not with the patch above. Nor with any patch I wrote from 3.3 to 3.6. > Goddammit, I don't want to hear another peep from you. Try again, this time with feeling. > You broke this because you wanted to save a few bytes in those strings, Saving code size is generally good. I didn't break any existing behavior. > Fuck me sideways. I trust and hope you prefer to be the big spoon. Newlines added to formats today _do_ help prevent interleaving from other processes. Is that optimal? No. Would I prefer no newlines for these formats? Sure. Does your proposal to eliminate newlines work today???No. Is it an easy problem to fix? No. For today, it's better to add newlines to formats to help avoid random interleaving.