From: Joe Perches <joe@perches.com>
To: leitao@linux.vnet.ibm.com
Cc: davem@davemloft.net, netdev@vger.kernel.org
Subject: Re: [PATCH] ehea: Add some info messages and fix an issue
Date: Fri, 26 Nov 2010 09:01:48 -0800 [thread overview]
Message-ID: <1290790908.11971.303.camel@Joe-Laptop> (raw)
In-Reply-To: <1290788771-10019-1-git-send-email-leitao@linux.vnet.ibm.com>
On Fri, 2010-11-26 at 14:26 -0200, leitao@linux.vnet.ibm.com wrote:
> This patch adds some debug information about ehea not being able to
> allocate enough spaces. Also it correctly updates the amount of available
> skb.
This patch introduces unnecessary whitespace into the logging messages.
> Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
[]
> diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c
[]
> @@ -400,6 +400,8 @@ static void ehea_refill_rq1(struct ehea_port_res *pr, int index, int nr_of_wqes)
> skb_arr_rq1[index] = netdev_alloc_skb(dev,
> EHEA_L_PKT_SIZE);
> if (!skb_arr_rq1[index]) {
> + ehea_info("Unable to allocate enough skb in
> + the array\n");
Don't split up the message into multiple lines like this.
Either just use a single line like:
ehea_info("Unable to allocate enough skb in the array\n");
and ignore 80 column line lengths, or break up the line into
quoted parts:
ehea_info("Unable to allocate enough skb in"
"the array\n");
The first option is preferred to make grepping easier.
[]
> @@ -735,8 +744,11 @@ static int ehea_proc_rwqes(struct net_device *dev,
>
> skb = netdev_alloc_skb(dev,
> EHEA_L_PKT_SIZE);
> - if (!skb)
> + if (!skb) {
> + ehea_info("Not enough memory to
> + allocate skb\n");
here too
next prev parent reply other threads:[~2010-11-26 17:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-26 16:26 [PATCH] ehea: Add some info messages and fix an issue leitao
2010-11-26 17:01 ` Joe Perches [this message]
2010-11-26 17:26 ` leitao
2010-11-26 23:27 ` [PATCH] ehea: Use the standard logging functions Joe Perches
2010-11-30 17:03 ` Breno Leitao
2010-11-30 18:18 ` [net-next PATCH V2] " Joe Perches
2010-12-02 18:54 ` Breno Leitao
2010-12-06 21:02 ` David Miller
2010-11-29 2:15 ` [PATCH] ehea: Add some info messages and fix an issue David Miller
2011-01-07 3:24 ` Anton Blanchard
2011-01-07 12:14 ` Breno Leitao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1290790908.11971.303.camel@Joe-Laptop \
--to=joe@perches.com \
--cc=davem@davemloft.net \
--cc=leitao@linux.vnet.ibm.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox