Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969784AbdIZPXN (ORCPT ); Tue, 26 Sep 2017 11:23:13 -0400 Received: from smtprelay0084.hostedemail.com ([216.40.44.84]:37876 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964826AbdIZPXM (ORCPT ); Tue, 26 Sep 2017 11:23:12 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2689:2828:3138:3139:3140:3141:3142:3352:3622:3867:3870:3871:3872:3873:3874:4321:5007:10004:10400:10848:11026:11232:11657:11658:11914:12043:12296:12438:12740:12760:12895:13069:13161:13229:13311:13357:13439:14659:14721:21080:21433:21627:30046:30054: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: boys55_3899477294403 X-Filterd-Recvd-Size: 1945 Message-ID: <1506439387.29089.10.camel@perches.com> Subject: Re: [PATCH] IB/ocrdma: pr_err() strings should end with newlines From: Joe Perches To: Yuval Shaia , Arvind Yadav Cc: selvin.xavier@broadcom.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:23:07 -0700 In-Reply-To: <20170926071920.GD5825@yuvallap> References: <28298577a7f6111b2d40780dddd3c87a32168ab7.1506408446.git.arvind.yadav.cs@gmail.com> <20170926071920.GD5825@yuvallap> 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: 955 Lines: 26 On Tue, 2017-09-26 at 10:19 +0300, Yuval Shaia wrote: > On Tue, Sep 26, 2017 at 12:21:44PM +0530, Arvind Yadav wrote: > > pr_err() messages should end with a new-line to avoid other messages > > being concatenated. [] > > diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_stats.c b/drivers/infiniband/hw/ocrdma/ocrdma_stats.c [] > > @@ -658,7 +658,7 @@ static ssize_t ocrdma_dbgfs_ops_write(struct file *filp, > > if (reset) { > > status = ocrdma_mbx_rdma_stats(dev, true); > > if (status) { > > - pr_err("Failed to reset stats = %d", status); > > + pr_err("Failed to reset stats = %d\n", status); > > goto err; > > } > > } > > While there, can you also fix line 1096 in ocrdma_hw.c? > > (is it too naive to expect checkptahc to catch such errors?) Yes. It is not reasonable. There would be way too high a false positive rate as checkpatch could not trace whether or not there is a printk(KERN_CONT or pr_cont after that.