login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
22
Re: [PATCH 05/26] atl1: print debug info if rrd error
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jeff Garzik <jeff@...>
To: <jacliburn@...>
Cc: <csnook@...>, <linux-kernel@...>, <atl1-devel@...>
Subject:
Re: [PATCH 05/26] atl1: print debug info if rrd error
Date: Tuesday, January 22, 2008 - 5:55 am
jacliburn@bellsouth.net
wrote:
quoted text
> From: Jay Cliburn <jacliburn@bellsouth.net> > > Add some debug dev_printks if we encounter a bad receive return descriptor. > > Signed-off-by: Jay Cliburn <jacliburn@bellsouth.net> > --- > drivers/net/atlx/atl1.c | 21 ++++++++++++++++++++- > 1 files changed, 20 insertions(+), 1 deletions(-) > > diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c > index 239641f..262d3ca 100644 > --- a/drivers/net/atlx/atl1.c > +++ b/drivers/net/atlx/atl1.c > @@ -1127,7 +1127,26 @@ static void atl1_intr_rx(struct atl1_adapter *adapter) > if (likely(rrd->xsz.valid)) { /* packet valid */ > chk_rrd: > /* check rrd status */ > - if (likely(rrd->num_buf == 1)) > + if (rrd->num_buf != 1) { > + dev_printk(KERN_DEBUG, &adapter->pdev->dev, > + "rx_buf_len = %d\n", > + adapter->rx_buffer_len); > + dev_printk(KERN_DEBUG, &adapter->pdev->dev, > + "RRD num_buf = %d\n", > + rrd->num_buf); > + dev_printk(KERN_DEBUG, &adapter->pdev->dev, > + "RRD pkt_len = %d\n", > + rrd->xsz.xsum_sz.pkt_size); > + dev_printk(KERN_DEBUG, &adapter->pdev->dev, > + "RRD pkt_flg = 0x%08X\n", > + rrd->pkt_flg); > + dev_printk(KERN_DEBUG, &adapter->pdev->dev, > + "RRD err_flg = 0x%08X\n", > + rrd->err_flg); > + dev_printk(KERN_DEBUG, &adapter->pdev->dev, > + "RRD vlan_tag = 0x%08X\n", > + rrd->vlan_tag); > + } else
look into netif_msg_*, which enables via ethtool very fine-grained selection of messages. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 00/26] atl1: divide and modernize
,
, (Mon Dec 31, 9:59 pm)
[PATCH 08/26] atl1: additional DMA engine configuration
,
, (Mon Dec 31, 9:59 pm)
[PATCH 07/26] atl1: clarify max rx frame size
,
, (Mon Dec 31, 9:59 pm)
[PATCH 06/26] atl1: update initialization parameters
,
, (Mon Dec 31, 9:59 pm)
Re: [PATCH 06/26] atl1: update initialization parameters
, Jeff Garzik
, (Tue Jan 22, 5:56 am)
Re: [PATCH 06/26] atl1: update initialization parameters
, Jay Cliburn
, (Tue Jan 22, 10:13 pm)
Re: [PATCH 06/26] atl1: update initialization parameters
, Chris Snook
, (Tue Jan 22, 10:30 pm)
Re: [PATCH 06/26] atl1: update initialization parameters
, Jeff Garzik
, (Tue Jan 22, 10:19 pm)
[PATCH 05/26] atl1: print debug info if rrd error
,
, (Mon Dec 31, 9:59 pm)
Re: [PATCH 05/26] atl1: print debug info if rrd error
, Jeff Garzik
, (Tue Jan 22, 5:55 am)
[PATCH 04/26] atl1: add ethtool register dump
,
, (Mon Dec 31, 9:59 pm)
Re: [PATCH 04/26] atl1: add ethtool register dump
, Jeff Garzik
, (Tue Jan 22, 5:54 am)
[PATCH 03/26] atl1: fix broken TSO
,
, (Mon Dec 31, 9:59 pm)
[PATCH 02/26] atl1: move common functions to atlx files
,
, (Mon Dec 31, 9:59 pm)
[PATCH 26/26] atl1: remove experimental tag and clean up com...
,
, (Mon Dec 31, 10:00 pm)
[PATCH 25/26] atl1: add NAPI support
,
, (Mon Dec 31, 10:00 pm)
Re: [PATCH 25/26] atl1: add NAPI support
, Joonwoo Park
, (Tue Jan 1, 2:09 am)
Re: [PATCH 25/26] [REVISED] atl1: add NAPI support
, Jay Cliburn
, (Tue Jan 1, 2:15 pm)
RE: [PATCH 25/26] [REVISED] atl1: add NAPI support
, Joonwoo Park
, (Tue Jan 1, 10:56 pm)
Re: [PATCH 25/26] [REVISED] atl1: add NAPI support
, David Miller
, (Tue Jan 1, 11:07 pm)
[PATCH 24/26] atl1: update wake-on-lan
,
, (Mon Dec 31, 10:00 pm)
[PATCH 23/26] atl1: update shutdown and remove functions
,
, (Mon Dec 31, 10:00 pm)
[PATCH 22/26] atl1: update netpoll
,
, (Mon Dec 31, 10:00 pm)
[PATCH 21/26] atl1: update atl1_close
,
, (Mon Dec 31, 9:59 pm)
[PATCH 20/26] atl1: update change mtu
,
, (Mon Dec 31, 9:59 pm)
[PATCH 19/26] atl1: modernize down/up functions
,
, (Mon Dec 31, 9:59 pm)
Re: [PATCH 19/26] atl1: modernize down/up functions
, Jeff Garzik
, (Tue Jan 22, 6:01 am)
[PATCH 01/26] atl1: relocate atl1 driver to /drivers/net/atlx
,
, (Mon Dec 31, 9:59 pm)
[PATCH 18/26] atl1: make function static
,
, (Mon Dec 31, 9:59 pm)
[PATCH 17/26] atl1: update phy config function
,
, (Mon Dec 31, 9:59 pm)
[PATCH 16/26] atl1: modernize check link function
,
, (Mon Dec 31, 9:59 pm)
[PATCH 15/26] atl1: tidy up ring management
,
, (Mon Dec 31, 9:59 pm)
[PATCH 14/26] atl1: move stray defines to header file
,
, (Mon Dec 31, 9:59 pm)
[PATCH 13/26] atl1: refactor interrupt handling
,
, (Mon Dec 31, 9:59 pm)
Re: [PATCH 13/26] atl1: refactor interrupt handling
, Jeff Garzik
, (Tue Jan 22, 5:59 am)
[PATCH 12/26] atl1: refactor atl1_probe
,
, (Mon Dec 31, 9:59 pm)
[PATCH 11/26] atl1: refactor initialization and startup
,
, (Mon Dec 31, 9:59 pm)
[PATCH 10/26] atl1: use csum_start
,
, (Mon Dec 31, 9:59 pm)
[PATCH 09/26] atl1: refactor tx processing
,
, (Mon Dec 31, 9:59 pm)
Re: [PATCH 09/26] atl1: refactor tx processing
, Jeff Garzik
, (Tue Jan 22, 5:58 am)
Re: [PATCH 09/26] atl1: refactor tx processing
, Jay Cliburn
, (Tue Jan 22, 8:31 pm)
Re: [PATCH 09/26] atl1: refactor tx processing
, Jay Cliburn
, (Thu Jan 24, 9:00 pm)
Re: [PATCH 09/26] atl1: refactor tx processing
, Jeff Garzik
, (Thu Jan 24, 11:01 pm)
Re: [PATCH 09/26] atl1: refactor tx processing
, Chris Snook
, (Thu Jan 24, 9:08 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 006/196] Chinese: add translation of oops-tracing.txt
Luciano Rocha
usb hdd problems with 2.6.27.2
Roland Dreier
Re: Integration of SCST in the mainstream Linux kernel
git
:
linux-netdev
:
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
[GIT]: Networking
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
499 guests
online.
Online users
strcmp
Syndicate