aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-12-07 10:12:26 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:06:11 -0500
commit0856e6816b30a84aa74c70ecb2bde0c41402f647 (patch)
tree0979c3ad441c0a10603291e25988168579fefc86
parentffd074fc78c1053b1f1697ebbe5bcfbb64949d16 (diff)
libertas: when usb_submit_usb fails, include the error code in the printk
Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/libertas/if_usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
index d5fc7d7ed537..e9190a6a1dcf 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -424,7 +424,7 @@ static int usb_tx_block(struct usb_card_rec *cardp, u8 * payload, u16 nb)
424 424
425 if ((ret = usb_submit_urb(cardp->tx_urb, GFP_ATOMIC))) { 425 if ((ret = usb_submit_urb(cardp->tx_urb, GFP_ATOMIC))) {
426 /* transfer failed */ 426 /* transfer failed */
427 lbs_deb_usbd(&cardp->udev->dev, "usb_submit_urb failed\n"); 427 lbs_deb_usbd(&cardp->udev->dev, "usb_submit_urb failed: %d\n", ret);
428 ret = -1; 428 ret = -1;
429 } else { 429 } else {
430 /* lbs_deb_usbd(&cardp->udev->dev, "usb_submit_urb success\n"); */ 430 /* lbs_deb_usbd(&cardp->udev->dev, "usb_submit_urb success\n"); */
@@ -462,7 +462,7 @@ static int __if_usb_submit_rx_urb(struct usb_card_rec *cardp,
462 /* lbs_deb_usbd(&cardp->udev->dev, "Pointer for rx_urb %p\n", cardp->rx_urb); */ 462 /* lbs_deb_usbd(&cardp->udev->dev, "Pointer for rx_urb %p\n", cardp->rx_urb); */
463 if ((ret = usb_submit_urb(cardp->rx_urb, GFP_ATOMIC))) { 463 if ((ret = usb_submit_urb(cardp->rx_urb, GFP_ATOMIC))) {
464 /* handle failure conditions */ 464 /* handle failure conditions */
465 lbs_deb_usbd(&cardp->udev->dev, "Submit Rx URB failed\n"); 465 lbs_deb_usbd(&cardp->udev->dev, "Submit Rx URB failed: %d\n", ret);
466 kfree_skb(skb); 466 kfree_skb(skb);
467 rinfo->skb = NULL; 467 rinfo->skb = NULL;
468 ret = -1; 468 ret = -1;