netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jamie Iles <jamie@jamieiles.com>
To: Joe Perches <joe@perches.com>
Cc: Jamie Iles <jamie@jamieiles.com>, netdev@vger.kernel.org, arnd@arndb.de
Subject: Re: [PATCHv4 4/9] macb: convert printk to netdev_ and friends
Date: Wed, 9 Nov 2011 13:55:46 +0000	[thread overview]
Message-ID: <20111109135546.GE4253@totoro> (raw)
In-Reply-To: <1320846368.6923.24.camel@Joe-Laptop>

On Wed, Nov 09, 2011 at 05:46:08AM -0800, Joe Perches wrote:
> On Wed, 2011-11-09 at 13:37 +0000, Jamie Iles wrote:
> > OK, here's an updated patch.  Thanks again Joe!
> 
> Hi Jamie, thanks for updating, one possible thing.
> 
> > @@ -625,15 +625,12 @@ static int macb_start_xmit(struct sk_buff *skb, struct net_device *dev)
> >  
> >  #ifdef DEBUG
> >  	int i;
> > -	dev_dbg(&bp->pdev->dev,
> > -		"start_xmit: len %u head %p data %p tail %p end %p\n",
> > -		skb->len, skb->head, skb->data,
> > -		skb_tail_pointer(skb), skb_end_pointer(skb));
> > -	dev_dbg(&bp->pdev->dev,
> > -		"data:");
> > -	for (i = 0; i < 16; i++)
> > -		printk(" %02x", (unsigned int)skb->data[i]);
> > -	printk("\n");
> > +	netdev_dbg(bp->dev,
> > +		   "start_xmit: len %u head %p data %p tail %p end %p\n",
> > +		   skb->len, skb->head, skb->data,
> > +		   skb_tail_pointer(skb), skb_end_pointer(skb));
> > +	print_hex_dump(KERN_DEBUG, "data: ", DUMP_PREFIX_OFFSET, 16, 1,
> > +		       skb->data, 16, true);
> >  #endif
> 
> I think there an unused variable "i" warning now
> if DEBUG is #defined.

Good eyes!  I've fixed that but won't repost it.

Jamie

  reply	other threads:[~2011-11-09 13:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-08 14:13 [PATCHv4 0/9] macb: add support for Cadence GEM Jamie Iles
2011-11-08 14:13 ` [PATCHv4 1/9] at91: provide macb clks with "pclk" and "hclk" name Jamie Iles
2011-11-08 14:13 ` [PATCHv4 2/9] macb: remove conditional clk handling Jamie Iles
2011-11-08 14:13 ` [PATCHv4 3/9] macb: unify at91 and avr32 platform data Jamie Iles
2011-11-08 14:13 ` [PATCHv4 4/9] macb: convert printk to netdev_ and friends Jamie Iles
2011-11-09 13:10   ` Joe Perches
2011-11-09 13:14     ` Jamie Iles
2011-11-09 13:37       ` Jamie Iles
2011-11-09 13:46         ` Joe Perches
2011-11-09 13:55           ` Jamie Iles [this message]
2011-11-08 14:13 ` [PATCHv4 5/9] macb: initial support for Cadence GEM Jamie Iles
2011-11-08 14:13 ` [PATCHv4 6/9] macb: support higher rate GEM MDIO clock divisors Jamie Iles
2011-11-08 14:13 ` [PATCHv4 7/9] macb: support statistics for GEM devices Jamie Iles
2011-11-08 14:13 ` [PATCHv4 8/9] macb: support DMA bus widths > 32 bits Jamie Iles
2011-11-08 14:13 ` [PATCHv4 9/9] macb: allow GEM to have configurable receive buffer size Jamie Iles

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=20111109135546.GE4253@totoro \
    --to=jamie@jamieiles.com \
    --cc=arnd@arndb.de \
    --cc=joe@perches.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;
as well as URLs for NNTP newsgroup(s).