Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753449AbcKYLeg (ORCPT ); Fri, 25 Nov 2016 06:34:36 -0500 Received: from smtprelay0024.hostedemail.com ([216.40.44.24]:41266 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751294AbcKYLe1 (ORCPT ); Fri, 25 Nov 2016 06:34:27 -0500 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:1381:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2538:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3871:3872:4250:4321:5007:6119:7904:8957:10004:10400:10848:11232:11658:11914:12043:12296:12438:12555:12740:12760:13069:13095:13311:13357:13439:14659:14721:21080:21433:21451:30029:30054:30067: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:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: screw77_60e5f4893841b X-Filterd-Recvd-Size: 1887 Message-ID: <1480073664.19726.22.camel@perches.com> Subject: Re: mptbase: fix printk output using pr_cont From: Joe Perches To: jongman.heo@samsung.com, "linux-kernel@vger.kernel.org" Date: Fri, 25 Nov 2016 03:34:24 -0800 In-Reply-To: <20161125010241epcms1p7e0f70a92e15d61ec80ef4112f81d16cc@epcms1p7> References: <20161125010241epcms1p7e0f70a92e15d61ec80ef4112f81d16cc@epcms1p7> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.1-0ubuntu2 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: 1016 Lines: 32 On Fri, 2016-11-25 at 01:02 +0000, Jongman Heo wrote: > With current linus git, Fusion MPT driver prints out unnecessary new lines. > > [ 2.090255] Fusion MPT base driver 3.04.20 > [ 2.090257] Copyright (c) 1999-2008 LSI Corporation > [ 2.090262] Fusion MPT SPI Host driver 3.04.20 > [ 2.090979] mptbase: ioc0: Initiating bringup > [ 2.196306] ioc0: > [ 2.196310] LSI53C1030 B0: > [ 2.196312] Capabilities={ > [ 2.196313] Initiator > [ 2.196314] } > > > I modified set of printk()s to pr_cont to fix the problem. > Not sure if it's correct, but now I can see the message as previous. [] > diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c [] > @@ -2866,23 +2866,23 @@ MptDisplayIocCapabilities(MPT_ADAPTER *ioc) > { > int i = 0; > > - printk(KERN_INFO "%s: ", ioc->name); > + pr_cont(KERN_INFO "%s: ", ioc->name); This is not s correct conversion. This can either stay as printk(KERN_INFO or be converted to pr_info pr_info("%s: ", ioc->name);