Commit 8a660261 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: usbpipe: replace debug messsages.

Replace all DBG_PRT wiht dev_dbg
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f347d8cb
...@@ -51,9 +51,6 @@ ...@@ -51,9 +51,6 @@
//endpoint 2: read bulk //endpoint 2: read bulk
//endpoint 3: write bulk //endpoint 3: write bulk
//static int msglevel =MSG_LEVEL_DEBUG;
static int msglevel =MSG_LEVEL_INFO;
#define USB_CTL_WAIT 500 //ms #define USB_CTL_WAIT 500 //ms
#ifndef URB_ASYNC_UNLINK #ifndef URB_ASYNC_UNLINK
...@@ -142,8 +139,7 @@ int PIPEnsInterruptRead(struct vnt_private *priv) ...@@ -142,8 +139,7 @@ int PIPEnsInterruptRead(struct vnt_private *priv)
status = usb_submit_urb(priv->pInterruptURB, GFP_ATOMIC); status = usb_submit_urb(priv->pInterruptURB, GFP_ATOMIC);
if (status) { if (status) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO dev_dbg(&priv->usb->dev, "Submit int URB failed %d\n", status);
"Submit int URB failed %d\n", status);
priv->int_buf.in_use = false; priv->int_buf.in_use = false;
} }
...@@ -188,16 +184,14 @@ static void s_nsInterruptUsbIoCompleteRead(struct urb *urb) ...@@ -188,16 +184,14 @@ static void s_nsInterruptUsbIoCompleteRead(struct urb *urb)
if (status != STATUS_SUCCESS) { if (status != STATUS_SUCCESS) {
priv->int_buf.in_use = false; priv->int_buf.in_use = false;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO dev_dbg(&priv->usb->dev, "%s status = %d\n", __func__, status);
"IntUSBIoCompleteControl STATUS = %d\n", status);
} else { } else {
INTnsProcessData(priv); INTnsProcessData(priv);
} }
status = usb_submit_urb(priv->pInterruptURB, GFP_ATOMIC); status = usb_submit_urb(priv->pInterruptURB, GFP_ATOMIC);
if (status) { if (status) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO dev_dbg(&priv->usb->dev, "Submit int URB failed %d\n", status);
"Submit int URB failed %d\n", status);
} else { } else {
priv->int_buf.in_use = true; priv->int_buf.in_use = true;
} }
...@@ -229,7 +223,7 @@ int PIPEnsBulkInUsbRead(struct vnt_private *priv, struct vnt_rcb *rcb) ...@@ -229,7 +223,7 @@ int PIPEnsBulkInUsbRead(struct vnt_private *priv, struct vnt_rcb *rcb)
urb = rcb->pUrb; urb = rcb->pUrb;
if (rcb->skb == NULL) { if (rcb->skb == NULL) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"rcb->skb is null\n"); dev_dbg(&priv->usb->dev, "rcb->skb is null\n");
return status; return status;
} }
...@@ -243,8 +237,7 @@ int PIPEnsBulkInUsbRead(struct vnt_private *priv, struct vnt_rcb *rcb) ...@@ -243,8 +237,7 @@ int PIPEnsBulkInUsbRead(struct vnt_private *priv, struct vnt_rcb *rcb)
status = usb_submit_urb(urb, GFP_ATOMIC); status = usb_submit_urb(urb, GFP_ATOMIC);
if (status != 0) { if (status != 0) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO dev_dbg(&priv->usb->dev, "Submit Rx URB failed %d\n", status);
"Submit Rx URB failed %d\n", status);
return STATUS_FAILURE ; return STATUS_FAILURE ;
} }
...@@ -285,8 +278,7 @@ static void s_nsBulkInUsbIoCompleteRead(struct urb *urb) ...@@ -285,8 +278,7 @@ static void s_nsBulkInUsbIoCompleteRead(struct urb *urb)
return; return;
case -ETIMEDOUT: case -ETIMEDOUT:
default: default:
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO dev_dbg(&priv->usb->dev, "BULK In failed %d\n", urb->status);
"BULK In failed %d\n", urb->status);
break; break;
} }
...@@ -301,8 +293,9 @@ static void s_nsBulkInUsbIoCompleteRead(struct urb *urb) ...@@ -301,8 +293,9 @@ static void s_nsBulkInUsbIoCompleteRead(struct urb *urb)
rcb->Ref--; rcb->Ref--;
if (rcb->Ref == 0) { if (rcb->Ref == 0) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"RxvFreeNormal %d\n", dev_dbg(&priv->usb->dev,
priv->NumRecvFreeList); "RxvFreeNormal %d\n", priv->NumRecvFreeList);
spin_lock_irqsave(&priv->lock, flags); spin_lock_irqsave(&priv->lock, flags);
RXvFreeRCB(rcb, re_alloc_skb); RXvFreeRCB(rcb, re_alloc_skb);
...@@ -352,8 +345,8 @@ int PIPEnsSendBulkOut(struct vnt_private *priv, ...@@ -352,8 +345,8 @@ int PIPEnsSendBulkOut(struct vnt_private *priv,
status = usb_submit_urb(urb, GFP_ATOMIC); status = usb_submit_urb(urb, GFP_ATOMIC);
if (status != 0) { if (status != 0) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO dev_dbg(&priv->usb->dev, "Submit Tx URB failed %d\n", status);
"Submit Tx URB failed %d\n", status);
context->in_use = false; context->in_use = false;
return STATUS_FAILURE; return STATUS_FAILURE;
} }
...@@ -397,8 +390,7 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb) ...@@ -397,8 +390,7 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb)
switch (urb->status) { switch (urb->status) {
case 0: case 0:
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO dev_dbg(&priv->usb->dev, "Write %d bytes\n", context->buf_len);
"Write %d bytes\n", context->buf_len);
break; break;
case -ECONNRESET: case -ECONNRESET:
case -ENOENT: case -ENOENT:
...@@ -407,8 +399,7 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb) ...@@ -407,8 +399,7 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb)
return; return;
case -ETIMEDOUT: case -ETIMEDOUT:
default: default:
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO dev_dbg(&priv->usb->dev, "BULK Out failed %d\n", urb->status);
"BULK Out failed %d\n", urb->status);
break; break;
} }
...@@ -419,7 +410,7 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb) ...@@ -419,7 +410,7 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb)
if (context->skb != NULL) { if (context->skb != NULL) {
dev_kfree_skb_irq(context->skb); dev_kfree_skb_irq(context->skb);
context->skb = NULL; context->skb = NULL;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO dev_dbg(&priv->usb->dev,
"tx %d bytes\n", context->buf_len); "tx %d bytes\n", context->buf_len);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment