Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0856e6816b30a84aa74c70ecb2bde0c41402f647
Commit:     0856e6816b30a84aa74c70ecb2bde0c41402f647
Parent:     ffd074fc78c1053b1f1697ebbe5bcfbb64949d16
Author:     David Woodhouse <[EMAIL PROTECTED]>
AuthorDate: Fri Dec 7 15:12:26 2007 +0000
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:06:11 2008 -0800

    libertas: when usb_submit_usb fails, include the error code in the printk
    
    Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 drivers/net/wireless/libertas/if_usb.c |    4 ++--
 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 d5fc7d7..e9190a6 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)
 
        if ((ret = usb_submit_urb(cardp->tx_urb, GFP_ATOMIC))) {
                /*  transfer failed */
-               lbs_deb_usbd(&cardp->udev->dev, "usb_submit_urb failed\n");
+               lbs_deb_usbd(&cardp->udev->dev, "usb_submit_urb failed: %d\n", 
ret);
                ret = -1;
        } else {
                /* 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,
        /* lbs_deb_usbd(&cardp->udev->dev, "Pointer for rx_urb %p\n", 
cardp->rx_urb); */
        if ((ret = usb_submit_urb(cardp->rx_urb, GFP_ATOMIC))) {
                /* handle failure conditions */
-               lbs_deb_usbd(&cardp->udev->dev, "Submit Rx URB failed\n");
+               lbs_deb_usbd(&cardp->udev->dev, "Submit Rx URB failed: %d\n", 
ret);
                kfree_skb(skb);
                rinfo->skb = NULL;
                ret = -1;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to