Skip to content

Commit

Permalink
[IrDA]: Adding carriage returns to mcs7780 debug statements
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Ortiz <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Samuel Ortiz authored and David S. Miller committed Apr 26, 2007
1 parent c3ea9fa commit 599b1fa
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions drivers/net/irda/mcs7780.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ static inline int mcs_setup_transceiver_vishay(struct mcs_cb *mcs)
/* Setup a communication between mcs7780 and agilent chip. */
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;
}

/* Setup a communication between mcs7780 and sharp chip. */
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;
}

Expand Down Expand Up @@ -279,7 +279,7 @@ static inline int mcs_setup_transceiver(struct mcs_cb *mcs)
break;

default:
IRDA_WARNING("Unknown transceiver type: %d",
IRDA_WARNING("Unknown transceiver type: %d\n",
mcs->transceiver_type);
ret = 1;
}
Expand Down Expand Up @@ -318,7 +318,7 @@ static inline int mcs_setup_transceiver(struct mcs_cb *mcs)
return ret;

error:
IRDA_ERROR("%s", msg);
IRDA_ERROR("%s\n", msg);
return ret;
}

Expand Down Expand Up @@ -587,7 +587,7 @@ static int mcs_speed_change(struct mcs_cb *mcs)
} while(cnt++ < 100 && (rval & MCS_IRINTX));

if(cnt >= 100) {
IRDA_ERROR("unable to change speed");
IRDA_ERROR("unable to change speed\n");
ret = -EIO;
goto error;
}
Expand Down Expand Up @@ -638,7 +638,7 @@ static int mcs_speed_change(struct mcs_cb *mcs)

default:
ret = 1;
IRDA_WARNING("Unknown transceiver type: %d",
IRDA_WARNING("Unknown transceiver type: %d\n",
mcs->transceiver_type);
}
if (unlikely(ret))
Expand Down Expand Up @@ -733,7 +733,7 @@ static int mcs_net_open(struct net_device *netdev)
sprintf(hwname, "usb#%d", mcs->usbdev->devnum);
mcs->irlap = irlap_open(netdev, &mcs->qos, hwname);
if (!mcs->irlap) {
IRDA_ERROR("mcs7780: irlap_open failed");
IRDA_ERROR("mcs7780: irlap_open failed\n");
goto error2;
}

Expand Down Expand Up @@ -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);

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) {
case -ENODEV:
case -EPIPE:
Expand Down Expand Up @@ -897,15 +897,15 @@ static int mcs_probe(struct usb_interface *intf,
if (!ndev)
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? */
SET_MODULE_OWNER(ndev);
SET_NETDEV_DEV(ndev, &intf->dev);

ret = usb_reset_configuration(udev);
if (ret != 0) {
IRDA_ERROR("mcs7780: usb reset configuration failed");
IRDA_ERROR("mcs7780: usb reset configuration failed\n");
goto error2;
}

Expand Down Expand Up @@ -950,7 +950,7 @@ static int mcs_probe(struct usb_interface *intf,
if (ret != 0)
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);

mcs->transceiver_type = transceiver_type;
Expand Down Expand Up @@ -981,7 +981,7 @@ static void mcs_disconnect(struct usb_interface *intf)
free_netdev(mcs->netdev);

usb_set_intfdata(intf, NULL);
IRDA_DEBUG(0, "MCS7780 now disconnected.");
IRDA_DEBUG(0, "MCS7780 now disconnected.\n");
}

/* Module insertion */
Expand All @@ -992,7 +992,7 @@ static int __init mcs_init(void)
/* register this driver with the USB subsystem */
result = usb_register(&mcs_driver);
if (result)
IRDA_ERROR("usb_register failed. Error number %d", result);
IRDA_ERROR("usb_register failed. Error number %d\n", result);

return result;
}
Expand Down

0 comments on commit 599b1fa

Please sign in to comment.