diff mbox

[3/5] bnx2fc: Print netdev device name when FCoE is successfully initialized.

Message ID 1459516223-32106-4-git-send-email-chad.dupuis@qlogic.com (mailing list archive)
State Changes Requested, archived
Headers show

Commit Message

Chad Dupuis April 1, 2016, 1:10 p.m. UTC
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
---
 drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Johannes Thumshirn April 1, 2016, 1:58 p.m. UTC | #1
On 2016-04-01 15:10, Chad Dupuis wrote:
> Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
> ---
>  drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
> b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
> index d95eee6..60423cf 100644
> --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
> +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
> @@ -2044,6 +2044,8 @@ static void bnx2fc_ulp_init(struct cnic_dev *dev)
>  		return;
>  	}
> 
> +	pr_err(PFX "FCoE initialized for %s.\n", dev->netdev->name);
> +
>  	/* Add HBA to the adapter list */
>  	mutex_lock(&bnx2fc_dev_lock);
>  	list_add_tail(&hba->list, &adapter_list);

I don't think KERN_ERR is the appropriate log level for this, can you 
change it to pr_info()?
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Chad Dupuis April 1, 2016, 2:08 p.m. UTC | #2
On Fri, 1 Apr 2016, Johannes Thumshirn wrote:

> On 2016-04-01 15:10, Chad Dupuis wrote:
>> Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
>> ---
>>  drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 2 ++
>>  1 file changed, 2 insertions(+)
>> 
>> diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
>> b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
>> index d95eee6..60423cf 100644
>> --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
>> +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
>> @@ -2044,6 +2044,8 @@ static void bnx2fc_ulp_init(struct cnic_dev *dev)
>>  		return;
>>  	}
>> 
>> +	pr_err(PFX "FCoE initialized for %s.\n", dev->netdev->name);
>> +
>>  	/* Add HBA to the adapter list */
>>  	mutex_lock(&bnx2fc_dev_lock);
>>  	list_add_tail(&hba->list, &adapter_list);
>
> I don't think KERN_ERR is the appropriate log level for this, can you change 
> it to pr_info()?
>

Yes, I'll change it to a pr_info in a V2 set.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
index d95eee6..60423cf 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
@@ -2044,6 +2044,8 @@  static void bnx2fc_ulp_init(struct cnic_dev *dev)
 		return;
 	}
 
+	pr_err(PFX "FCoE initialized for %s.\n", dev->netdev->name);
+
 	/* Add HBA to the adapter list */
 	mutex_lock(&bnx2fc_dev_lock);
 	list_add_tail(&hba->list, &adapter_list);