[IrDA]: Adding carriage returns to mcs7780 debug statements
Signed-off-by: Samuel Ortiz <samuel@sortiz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
c3ea9fa274
commit
599b1fa914
@@ -200,14 +200,14 @@ static inline int mcs_setup_transceiver_vishay(struct mcs_cb *mcs)
|
|||||||
/* Setup a communication between mcs7780 and agilent chip. */
|
/* Setup a communication between mcs7780 and agilent chip. */
|
||||||
static inline int mcs_setup_transceiver_agilent(struct mcs_cb *mcs)
|
static inline int mcs_setup_transceiver_agilent(struct mcs_cb *mcs)
|
||||||
{
|
{
|
||||||
IRDA_WARNING("This transceiver type is not supported yet.");
|
IRDA_WARNING("This transceiver type is not supported yet.\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Setup a communication between mcs7780 and sharp chip. */
|
/* Setup a communication between mcs7780 and sharp chip. */
|
||||||
static inline int mcs_setup_transceiver_sharp(struct mcs_cb *mcs)
|
static inline int mcs_setup_transceiver_sharp(struct mcs_cb *mcs)
|
||||||
{
|
{
|
||||||
IRDA_WARNING("This transceiver type is not supported yet.");
|
IRDA_WARNING("This transceiver type is not supported yet.\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -279,7 +279,7 @@ static inline int mcs_setup_transceiver(struct mcs_cb *mcs)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
IRDA_WARNING("Unknown transceiver type: %d",
|
IRDA_WARNING("Unknown transceiver type: %d\n",
|
||||||
mcs->transceiver_type);
|
mcs->transceiver_type);
|
||||||
ret = 1;
|
ret = 1;
|
||||||
}
|
}
|
||||||
@@ -318,7 +318,7 @@ static inline int mcs_setup_transceiver(struct mcs_cb *mcs)
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
IRDA_ERROR("%s", msg);
|
IRDA_ERROR("%s\n", msg);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -587,7 +587,7 @@ static int mcs_speed_change(struct mcs_cb *mcs)
|
|||||||
} while(cnt++ < 100 && (rval & MCS_IRINTX));
|
} while(cnt++ < 100 && (rval & MCS_IRINTX));
|
||||||
|
|
||||||
if(cnt >= 100) {
|
if(cnt >= 100) {
|
||||||
IRDA_ERROR("unable to change speed");
|
IRDA_ERROR("unable to change speed\n");
|
||||||
ret = -EIO;
|
ret = -EIO;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
@@ -638,7 +638,7 @@ static int mcs_speed_change(struct mcs_cb *mcs)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
ret = 1;
|
ret = 1;
|
||||||
IRDA_WARNING("Unknown transceiver type: %d",
|
IRDA_WARNING("Unknown transceiver type: %d\n",
|
||||||
mcs->transceiver_type);
|
mcs->transceiver_type);
|
||||||
}
|
}
|
||||||
if (unlikely(ret))
|
if (unlikely(ret))
|
||||||
@@ -733,7 +733,7 @@ static int mcs_net_open(struct net_device *netdev)
|
|||||||
sprintf(hwname, "usb#%d", mcs->usbdev->devnum);
|
sprintf(hwname, "usb#%d", mcs->usbdev->devnum);
|
||||||
mcs->irlap = irlap_open(netdev, &mcs->qos, hwname);
|
mcs->irlap = irlap_open(netdev, &mcs->qos, hwname);
|
||||||
if (!mcs->irlap) {
|
if (!mcs->irlap) {
|
||||||
IRDA_ERROR("mcs7780: irlap_open failed");
|
IRDA_ERROR("mcs7780: irlap_open failed\n");
|
||||||
goto error2;
|
goto error2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -862,7 +862,7 @@ static int mcs_hard_xmit(struct sk_buff *skb, struct net_device *ndev)
|
|||||||
mcs->out_buf, wraplen, mcs_send_irq, mcs);
|
mcs->out_buf, wraplen, mcs_send_irq, mcs);
|
||||||
|
|
||||||
if ((ret = usb_submit_urb(mcs->tx_urb, GFP_ATOMIC))) {
|
if ((ret = usb_submit_urb(mcs->tx_urb, GFP_ATOMIC))) {
|
||||||
IRDA_ERROR("failed tx_urb: %d", ret);
|
IRDA_ERROR("failed tx_urb: %d\n", ret);
|
||||||
switch (ret) {
|
switch (ret) {
|
||||||
case -ENODEV:
|
case -ENODEV:
|
||||||
case -EPIPE:
|
case -EPIPE:
|
||||||
@@ -897,7 +897,7 @@ static int mcs_probe(struct usb_interface *intf,
|
|||||||
if (!ndev)
|
if (!ndev)
|
||||||
goto error1;
|
goto error1;
|
||||||
|
|
||||||
IRDA_DEBUG(1, "MCS7780 USB-IrDA bridge found at %d.", udev->devnum);
|
IRDA_DEBUG(1, "MCS7780 USB-IrDA bridge found at %d.\n", udev->devnum);
|
||||||
|
|
||||||
/* what is it realy for? */
|
/* what is it realy for? */
|
||||||
SET_MODULE_OWNER(ndev);
|
SET_MODULE_OWNER(ndev);
|
||||||
@@ -905,7 +905,7 @@ static int mcs_probe(struct usb_interface *intf,
|
|||||||
|
|
||||||
ret = usb_reset_configuration(udev);
|
ret = usb_reset_configuration(udev);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
IRDA_ERROR("mcs7780: usb reset configuration failed");
|
IRDA_ERROR("mcs7780: usb reset configuration failed\n");
|
||||||
goto error2;
|
goto error2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -950,7 +950,7 @@ static int mcs_probe(struct usb_interface *intf,
|
|||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
goto error2;
|
goto error2;
|
||||||
|
|
||||||
IRDA_DEBUG(1, "IrDA: Registered MosChip MCS7780 device as %s",
|
IRDA_DEBUG(1, "IrDA: Registered MosChip MCS7780 device as %s\n",
|
||||||
ndev->name);
|
ndev->name);
|
||||||
|
|
||||||
mcs->transceiver_type = transceiver_type;
|
mcs->transceiver_type = transceiver_type;
|
||||||
@@ -981,7 +981,7 @@ static void mcs_disconnect(struct usb_interface *intf)
|
|||||||
free_netdev(mcs->netdev);
|
free_netdev(mcs->netdev);
|
||||||
|
|
||||||
usb_set_intfdata(intf, NULL);
|
usb_set_intfdata(intf, NULL);
|
||||||
IRDA_DEBUG(0, "MCS7780 now disconnected.");
|
IRDA_DEBUG(0, "MCS7780 now disconnected.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Module insertion */
|
/* Module insertion */
|
||||||
@@ -992,7 +992,7 @@ static int __init mcs_init(void)
|
|||||||
/* register this driver with the USB subsystem */
|
/* register this driver with the USB subsystem */
|
||||||
result = usb_register(&mcs_driver);
|
result = usb_register(&mcs_driver);
|
||||||
if (result)
|
if (result)
|
||||||
IRDA_ERROR("usb_register failed. Error number %d", result);
|
IRDA_ERROR("usb_register failed. Error number %d\n", result);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user