Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753611AbbFAQoK (ORCPT ); Mon, 1 Jun 2015 12:44:10 -0400 Received: from smtprelay0167.hostedemail.com ([216.40.44.167]:46437 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752717AbbFAQoF (ORCPT ); Mon, 1 Jun 2015 12:44:05 -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:1801:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3872:3873:4321:4362:4605:5007:6119:6261:7903:8531:10004:10400:10848:11026:11232:11473:11658:11914:12050:12294:12438:12517:12519:12740:13069:13311:13357:21080,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 X-HE-Tag: work22_5fbf6b1b7f61 X-Filterd-Recvd-Size: 2652 Message-ID: <1433177040.4861.25.camel@perches.com> Subject: Re: [PATCH v2 1/3] megaraid : use dev_printk when possible From: Joe Perches To: Bjorn Helgaas Cc: Kashyap Desai , Uday Lingala , Sumit Saxena , "PDL,MEGARAIDLINUX" , "James E.J. Bottomley" , Christoph Hellwig , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Date: Mon, 01 Jun 2015 09:44:00 -0700 In-Reply-To: References: <20150601153240.23309.73917.stgit@bhelgaas-glaptop2.roam.corp.google.com> <20150601154003.23309.70647.stgit@bhelgaas-glaptop2.roam.corp.google.com> <1433175024.4861.11.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.11-0ubuntu3 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: 1497 Lines: 37 On Mon, 2015-06-01 at 11:40 -0500, Bjorn Helgaas wrote: > On Mon, Jun 1, 2015 at 11:10 AM, Joe Perches wrote: > > On Mon, 2015-06-01 at 10:40 -0500, Bjorn Helgaas wrote: > >> Use dev_printk() when possible to make messages more useful. > > [] > >> diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c > > [] > >> @@ -268,7 +268,7 @@ mega_query_adapter(adapter_t *adapter) > >> raw_mbox[2] = NC_SUBOP_PRODUCT_INFO; /* i.e. 0x0E */ > >> > >> if ((retval = issue_scb_block(adapter, raw_mbox))) > >> - printk(KERN_WARNING > >> + dev_warn(&adapter->dev->dev, > >> "megaraid: Product_info cmd failed with error: %d\n", > >> retval); > > > > Wouldn't these be a bit redundant with a "megaraid: " prefix now? > > Perhaps it'd be nicer to realign arguments too. > > Yes, you're right. I took out most of the "megaraid: " prefixes, but > I missed a few. > > I tried not to realign things too much because it's hard to know where > to stop, and I don't want to spend a week on this. ;) I try to realign all modified statements. > I'll post a v3 in a day or two in case there are other comments. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/