login
Login
/
Register
Search
Search this site:
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
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jeff Garzik
Subject:
Re: [PATCH 05/26] atl1: print debug info if rrd error
Date: Tuesday, January 22, 2008 - 2: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
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 01/26] atl1: relocate atl1 driver to /drivers/net/atlx
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 02/26] atl1: move common functions to atlx files
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 03/26] atl1: fix broken TSO
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 04/26] atl1: add ethtool register dump
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 05/26] atl1: print debug info if rrd error
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 06/26] atl1: update initialization parameters
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 07/26] atl1: clarify max rx frame size
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 09/26] atl1: refactor tx processing
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 11/26] atl1: refactor initialization and startup
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 12/26] atl1: refactor atl1_probe
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 13/26] atl1: refactor interrupt handling
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 14/26] atl1: move stray defines to header file
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 15/26] atl1: tidy up ring management
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 16/26] atl1: modernize check link function
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 17/26] atl1: update phy config function
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 18/26] atl1: make function static
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 19/26] atl1: modernize down/up functions
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 20/26] atl1: update change mtu
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 21/26] atl1: update atl1_close
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 22/26] atl1: update netpoll
, jacliburn
, (Mon Dec 31, 7:00 pm)
[PATCH 23/26] atl1: update shutdown and remove functions
, jacliburn
, (Mon Dec 31, 7:00 pm)
[PATCH 24/26] atl1: update wake-on-lan
, jacliburn
, (Mon Dec 31, 7:00 pm)
[PATCH 25/26] atl1: add NAPI support
, jacliburn
, (Mon Dec 31, 7:00 pm)
Re: [PATCH 25/26] atl1: add NAPI support
, Joonwoo Park
, (Mon Dec 31, 11:09 pm)
Re: [PATCH 25/26] [REVISED] atl1: add NAPI support
, Jay Cliburn
, (Tue Jan 1, 11:15 am)
RE: [PATCH 25/26] [REVISED] atl1: add NAPI support
, Joonwoo Park
, (Tue Jan 1, 7:56 pm)
Re: [PATCH 25/26] [REVISED] atl1: add NAPI support
, David Miller
, (Tue Jan 1, 8:07 pm)
Re: [PATCH 04/26] atl1: add ethtool register dump
, Jeff Garzik
, (Tue Jan 22, 2:54 am)
Re: [PATCH 05/26] atl1: print debug info if rrd error
, Jeff Garzik
, (Tue Jan 22, 2:55 am)
Re: [PATCH 06/26] atl1: update initialization parameters
, Jeff Garzik
, (Tue Jan 22, 2:56 am)
Re: [PATCH 09/26] atl1: refactor tx processing
, Jeff Garzik
, (Tue Jan 22, 2:58 am)
Re: [PATCH 13/26] atl1: refactor interrupt handling
, Jeff Garzik
, (Tue Jan 22, 2:59 am)
Re: [PATCH 19/26] atl1: modernize down/up functions
, Jeff Garzik
, (Tue Jan 22, 3:01 am)
Re: [PATCH 09/26] atl1: refactor tx processing
, Jay Cliburn
, (Tue Jan 22, 5:31 pm)
Re: [PATCH 06/26] atl1: update initialization parameters
, Jay Cliburn
, (Tue Jan 22, 7:13 pm)
Re: [PATCH 06/26] atl1: update initialization parameters
, Jeff Garzik
, (Tue Jan 22, 7:19 pm)
Re: [PATCH 06/26] atl1: update initialization parameters
, Chris Snook
, (Tue Jan 22, 7:30 pm)
Re: [PATCH 09/26] atl1: refactor tx processing
, Jay Cliburn
, (Thu Jan 24, 6:00 pm)
Re: [PATCH 09/26] atl1: refactor tx processing
, Chris Snook
, (Thu Jan 24, 6:08 pm)
Re: [PATCH 09/26] atl1: refactor tx processing
, Jeff Garzik
, (Thu Jan 24, 8:01 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
[PATCH] KEYS: Use the variable 'key' in keyctl_describe_key()
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Sam Ravnborg
Re: [PATCH] kbuild: fix make V=1
Nick Piggin
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
Matthew Garrett
Re: [linux-pm] [PATCH] Remove process freezer from suspend to RAM pathway
git
:
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
Michael S. Tsirkin
git-kill: rewrite history removing a commit
linux-netdev
:
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Jarek Poplawski
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Lennert Buytenhek
Re: Distributed Switch Architecture(DSA)
Daniel Schaffrath
Re: tcp bw in 2.6
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
git-commits-head
:
Linux Kernel Mailing List
ipv6: fix an oops when force unload ipv6 module
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
kconfig: recalc symbol value before showing search results
Linux Kernel Mailing List
KVM: VMX: Clear CR4.VMXE in hardware_disable
Linux Kernel Mailing List
USB: set correct configuration in probe of ti_usb_3410_5052
openbsd-misc
:
Claudio Jeker
Re: Vlan Tag on Vlan Tag (l2tunneling)
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Tomas Bodzar
bsd: uvm_mapent_alloc: out of static map entries
Community First Financial
Teacher A+ Loan
Pieter Verberne
File collision while using pkg_add
Colocation donated by:
Syndicate