aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/zd1211rw
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2011-01-31 13:50:31 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-02-04 16:29:51 -0500
commit24d24c627cadcbff682fbf8448a775851bef833c (patch)
treef4e1e993851ea0a69931e615d9ead34cfc269189 /drivers/net/wireless/zd1211rw
parentab419e9bda10efced0db980478c3e40a1ad18ba3 (diff)
zd1211rw: add useful debug output
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/zd1211rw')
-rw-r--r--drivers/net/wireless/zd1211rw/zd_usb.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_usb.c b/drivers/net/wireless/zd1211rw/zd_usb.c
index 0631be6a53ac..f6df3665fdb6 100644
--- a/drivers/net/wireless/zd1211rw/zd_usb.c
+++ b/drivers/net/wireless/zd1211rw/zd_usb.c
@@ -411,8 +411,10 @@ static void int_urb_complete(struct urb *urb)
411 case -ENOENT: 411 case -ENOENT:
412 case -ECONNRESET: 412 case -ECONNRESET:
413 case -EPIPE: 413 case -EPIPE:
414 dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status);
414 return; 415 return;
415 default: 416 default:
417 dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status);
416 goto resubmit; 418 goto resubmit;
417 } 419 }
418 420
@@ -613,6 +615,7 @@ static void handle_rx_packet(struct zd_usb *usb, const u8 *buffer,
613 615
614static void rx_urb_complete(struct urb *urb) 616static void rx_urb_complete(struct urb *urb)
615{ 617{
618 int r;
616 struct zd_usb *usb; 619 struct zd_usb *usb;
617 struct zd_usb_rx *rx; 620 struct zd_usb_rx *rx;
618 const u8 *buffer; 621 const u8 *buffer;
@@ -627,6 +630,7 @@ static void rx_urb_complete(struct urb *urb)
627 case -ENOENT: 630 case -ENOENT:
628 case -ECONNRESET: 631 case -ECONNRESET:
629 case -EPIPE: 632 case -EPIPE:
633 dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status);
630 return; 634 return;
631 default: 635 default:
632 dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status); 636 dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status);
@@ -668,7 +672,9 @@ static void rx_urb_complete(struct urb *urb)
668 } 672 }
669 673
670resubmit: 674resubmit:
671 usb_submit_urb(urb, GFP_ATOMIC); 675 r = usb_submit_urb(urb, GFP_ATOMIC);
676 if (r)
677 dev_dbg_f(urb_dev(urb), "urb %p resubmit error %d\n", urb, r);
672} 678}
673 679
674static struct urb *alloc_rx_urb(struct zd_usb *usb) 680static struct urb *alloc_rx_urb(struct zd_usb *usb)
@@ -1001,6 +1007,7 @@ int zd_usb_tx(struct zd_usb *usb, struct sk_buff *skb)
1001 1007
1002 r = usb_submit_urb(urb, GFP_ATOMIC); 1008 r = usb_submit_urb(urb, GFP_ATOMIC);
1003 if (r) { 1009 if (r) {
1010 dev_dbg_f(zd_usb_dev(usb), "error submit urb %p %d\n", urb, r);
1004 usb_unanchor_urb(urb); 1011 usb_unanchor_urb(urb);
1005 skb_unlink(skb, &tx->submitted_skbs); 1012 skb_unlink(skb, &tx->submitted_skbs);
1006 goto error; 1013 goto error;