[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 6 Jun 2012 11:35:07 -0700
From: Anirban Chakraborty <anirban.chakraborty@...gic.com>
To: Joe Perches <joe@...ches.com>
CC: David Miller <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>,
Dept-NX Linux NIC Driver
<Dept_NX_Linux_NIC_Driver@...gic.com>,
Jitendra Kalsaria <jitendra.kalsaria@...gic.com>
Subject: Re: [PATCH net-next 2/3] qlcnic: fix unsupported CDRP command error
message.
On 6/6/12 11:14 AM, "Joe Perches" <joe@...ches.com> wrote:
>On Wed, 2012-06-06 at 13:35 -0400, Anirban Chakraborty wrote:
>> From: Jitendra Kalsaria <jitendra.kalsaria@...gic.com>
>>
>> Add debug messages for FW CDRP command failure.
>
>trivia:
>
>Please be consistent with the use of (preferably _no_) periods
>at the end of logging messages.
>
>$ git grep -E "[^\.]\\\\n\"" drivers/net/ethernet/qlogic/qlcnic/ | wc -l
>187
>$ git grep -E "\.\\\\n\"" drivers/net/ethernet/qlogic/qlcnic/ | wc -l
>22
>
>[]
>> diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c
>>b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c
>[]
>> @@ -53,12 +53,39 @@ qlcnic_issue_cmd(struct qlcnic_adapter *adapter,
>>struct qlcnic_cmd_args *cmd)
>> rsp = qlcnic_poll_rsp(adapter);
>>
>> if (rsp == QLCNIC_CDRP_RSP_TIMEOUT) {
>> - dev_err(&pdev->dev, "card response timeout.\n");
>> + dev_err(&pdev->dev, "CDRP response timeout.\n");
>
>ie: no period necessary.
Thanks for pointing it out. We will not add that period in commit messages
from next time on.
>
>CDRP is kind of an odd acronym.
>Is it for CarD ResPonse?
It stands for FW CommanD ResPonse.
>
>If it is, then I think a lot of the below messages are
>not particularly sensible and the CDRP should be dropped.
Having CDRRP in the message string helps us identify the source of error.
This works well for us in debugging issues.
-Anirban
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists