* [patch] [SCSI] mpt3sas: tidy up output slightly
@ 2014-03-28 8:39 Dan Carpenter
2014-04-29 12:45 ` Dan Carpenter
2014-05-02 11:44 ` Reddy, Sreekanth
0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2014-03-28 8:39 UTC (permalink / raw)
To: Nagalakshmi Nandigama
Cc: Sreekanth Reddy, support, James E.J. Bottomley, DL-MPTFusionLinux,
linux-scsi, kernel-janitors
The indenting here for "pr_info("\n");" is not correct. It's not part
of the if condition.
Also using pr_info() would put extra characters in the middle of the
line. I suppose that people could complain that pr_cont() is racy but
at least it's better than the original code.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c
index 0cf4f70..aa0e042 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_base.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_base.c
@@ -585,9 +585,9 @@ _base_display_event_data(struct MPT3SAS_ADAPTER *ioc,
(event_data->ReasonCode == MPI2_EVENT_SAS_DISC_RC_STARTED) ?
"start" : "stop");
if (event_data->DiscoveryStatus)
- pr_info("discovery_status(0x%08x)",
+ pr_cont("discovery_status(0x%08x)",
le32_to_cpu(event_data->DiscoveryStatus));
- pr_info("\n");
+ pr_cont("\n");
return;
}
case MPI2_EVENT_SAS_BROADCAST_PRIMITIVE:
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [patch] [SCSI] mpt3sas: tidy up output slightly
2014-03-28 8:39 [patch] [SCSI] mpt3sas: tidy up output slightly Dan Carpenter
@ 2014-04-29 12:45 ` Dan Carpenter
2014-05-02 11:44 ` Reddy, Sreekanth
1 sibling, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2014-04-29 12:45 UTC (permalink / raw)
To: Nagalakshmi Nandigama
Cc: Sreekanth Reddy, support, James E.J. Bottomley, DL-MPTFusionLinux,
linux-scsi, kernel-janitors
Hi Nagalakshmi,
Welcome back from vacation. Please Ack this patch because output is
still badly fromatted in linux-next.
regards,
dan carpenter
On Fri, Mar 28, 2014 at 11:39:01AM +0300, Dan Carpenter wrote:
> The indenting here for "pr_info("\n");" is not correct. It's not part
> of the if condition.
>
> Also using pr_info() would put extra characters in the middle of the
> line. I suppose that people could complain that pr_cont() is racy but
> at least it's better than the original code.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>
> diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c
> index 0cf4f70..aa0e042 100644
> --- a/drivers/scsi/mpt3sas/mpt3sas_base.c
> +++ b/drivers/scsi/mpt3sas/mpt3sas_base.c
> @@ -585,9 +585,9 @@ _base_display_event_data(struct MPT3SAS_ADAPTER *ioc,
> (event_data->ReasonCode == MPI2_EVENT_SAS_DISC_RC_STARTED) ?
> "start" : "stop");
> if (event_data->DiscoveryStatus)
> - pr_info("discovery_status(0x%08x)",
> + pr_cont("discovery_status(0x%08x)",
> le32_to_cpu(event_data->DiscoveryStatus));
> - pr_info("\n");
> + pr_cont("\n");
> return;
> }
> case MPI2_EVENT_SAS_BROADCAST_PRIMITIVE:
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [patch] [SCSI] mpt3sas: tidy up output slightly
2014-03-28 8:39 [patch] [SCSI] mpt3sas: tidy up output slightly Dan Carpenter
2014-04-29 12:45 ` Dan Carpenter
@ 2014-05-02 11:44 ` Reddy, Sreekanth
1 sibling, 0 replies; 3+ messages in thread
From: Reddy, Sreekanth @ 2014-05-02 11:44 UTC (permalink / raw)
To: Dan Carpenter, Nandigama, Nagalakshmi
Cc: Support, James E.J. Bottomley, DL-MPT Fusion Linux,
linux-scsi@vger.kernel.org, kernel-janitors@vger.kernel.org
James,
This patch seem to be fine. Please consider this patch.
Regards,
Sreekanth
>-----Original Message-----
>From: Dan Carpenter [mailto:dan.carpenter@oracle.com]
>Sent: Friday, March 28, 2014 2:09 PM
>To: Nandigama, Nagalakshmi
>Cc: Reddy, Sreekanth; Support; James E.J. Bottomley; DL-MPT Fusion Linux;
>linux-scsi@vger.kernel.org; kernel-janitors@vger.kernel.org
>Subject: [patch] [SCSI] mpt3sas: tidy up output slightly
>
>The indenting here for "pr_info("\n");" is not correct. It's not part of the if
>condition.
>
>Also using pr_info() would put extra characters in the middle of the line. I
>suppose that people could complain that pr_cont() is racy but at least it's
>better than the original code.
>
>Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>
>diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c
>b/drivers/scsi/mpt3sas/mpt3sas_base.c
>index 0cf4f70..aa0e042 100644
>--- a/drivers/scsi/mpt3sas/mpt3sas_base.c
>+++ b/drivers/scsi/mpt3sas/mpt3sas_base.c
>@@ -585,9 +585,9 @@ _base_display_event_data(struct MPT3SAS_ADAPTER
>*ioc,
> (event_data->ReasonCode ==
>MPI2_EVENT_SAS_DISC_RC_STARTED) ?
> "start" : "stop");
> if (event_data->DiscoveryStatus)
>- pr_info("discovery_status(0x%08x)",
>+ pr_cont("discovery_status(0x%08x)",
> le32_to_cpu(event_data->DiscoveryStatus));
>- pr_info("\n");
>+ pr_cont("\n");
> return;
> }
> case MPI2_EVENT_SAS_BROADCAST_PRIMITIVE:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-02 11:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-28 8:39 [patch] [SCSI] mpt3sas: tidy up output slightly Dan Carpenter
2014-04-29 12:45 ` Dan Carpenter
2014-05-02 11:44 ` Reddy, Sreekanth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox