Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031177AbdIZPFo (ORCPT ); Tue, 26 Sep 2017 11:05:44 -0400 Received: from smtprelay0208.hostedemail.com ([216.40.44.208]:35139 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S967121AbdIZPFm (ORCPT ); Tue, 26 Sep 2017 11:05:42 -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:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2693:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3871:3872:3873:3874:4321:5007:10004:10400:10848:11232:11658:11914:12296:12740:12760:12895:13069:13095:13141:13161:13229:13230:13255:13311:13357:13439:14096:14097:14659:14721:21080:21324:21433:21451:21627:30051:30054: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: night05_3178628c59751 X-Filterd-Recvd-Size: 1995 Message-ID: <1506438337.29089.8.camel@perches.com> Subject: Re: [PATCH] IB/mlx5:: pr_err() and mlx5_ib_dbg() strings should end with newlines From: Joe Perches To: Leon Romanovsky , Arvind Yadav Cc: matanb@mellanox.com, dledford@redhat.com, sean.hefty@intel.com, hal.rosenstock@gmail.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 26 Sep 2017 08:05:37 -0700 In-Reply-To: <20170926083843.GB6816@mtr-leonro.local> References: <7a5a195cd37db476a2ca007eddc0f28f3ade265b.1506407876.git.arvind.yadav.cs@gmail.com> <20170926083843.GB6816@mtr-leonro.local> 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 Content-Length: 977 Lines: 26 On Tue, 2017-09-26 at 11:38 +0300, Leon Romanovsky wrote: > On Tue, Sep 26, 2017 at 12:20:01PM +0530, Arvind Yadav wrote: > > pr_err() and mlx5_ib_dbg( messages should terminated with a new-line to > > avoid other messages being concatenated. [] > Did you see it is happening? > It is not needed after 4bcc595ccd80 ("printk: reinstate KERN_CONT for printing continuation lines") Not completely true, and that commit message itself is incorrect about how KERN_CONT was ever required or not required. After that commit, the dmesg output will eventually be corrected with an appended newline for sine line format strings without them, but the printk subsystem has to wait for another printk to occur before inserting that newline. The commit message bit that says: Things get much hairier when you have multiple threads going on and user level reading and writing logs too is correct. That's the actual reason that the proposed newline additions are reasonable.