[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAErSpo6z9xZx59PcZWUH5wqGc9E89gpjQ+_tU3t2wv-24CzCDA@mail.gmail.com>
Date: Mon, 1 Jun 2015 11:53:33 -0500
From: Bjorn Helgaas <bhelgaas@...gle.com>
To: Joe Perches <joe@...ches.com>
Cc: Kashyap Desai <kashyap.desai@...gotech.com>,
Uday Lingala <uday.lingala@...gotech.com>,
Sumit Saxena <sumit.saxena@...gotech.com>,
"PDL,MEGARAIDLINUX" <megaraidlinux.pdl@...gotech.com>,
"James E.J. Bottomley" <JBottomley@...n.com>,
Christoph Hellwig <hch@....de>,
"linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 1/3] megaraid : use dev_printk when possible
On Mon, Jun 1, 2015 at 11:44 AM, Joe Perches <joe@...ches.com> wrote:
> On Mon, 2015-06-01 at 11:40 -0500, Bjorn Helgaas wrote:
>> On Mon, Jun 1, 2015 at 11:10 AM, Joe Perches <joe@...ches.com> 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.
That's probably a reasonable approach. But it can also lead to
inconsistent indentation in the file, e.g., printk args indented
differently from args to other functions, which I don't like either.
Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists