[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1340933337-2752-1-git-send-email-sebastianbenvenuti@gmail.com>
Date: Thu, 28 Jun 2012 22:28:57 -0300
From: Sebastian Benvenuti <sebastianbenvenuti@...il.com>
To: abbotti@....co.uk
Cc: fmhess@...rs.sourceforge.net, gregkh@...uxfoundation.org,
linux-kernel@...r.kernel.org,
Sebastian Benvenuti <sebastianbenvenuti@...il.com>
Subject: [PATCH] Staging: comedi: vmk80xx: All syntax issues fixed
Changed "printk(KERN_INFO" to "pr_info("
and "printk(KERN_DEBUG" to "pr_debug("
Fixed a "quoted string split across lines" issue
no warnings after that
Signed-off-by: Sebastian Benvenuti <sebastianbenvenuti@...il.com>
---
drivers/staging/comedi/drivers/vmk80xx.c | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/drivers/staging/comedi/drivers/vmk80xx.c b/drivers/staging/comedi/drivers/vmk80xx.c
index baee8d7..4b4b183 100644
--- a/drivers/staging/comedi/drivers/vmk80xx.c
+++ b/drivers/staging/comedi/drivers/vmk80xx.c
@@ -160,7 +160,7 @@ static int dbgcm;
#define dbgcm(fmt, arg...) \
do { \
if (dbgcm) \
- printk(KERN_DEBUG fmt, ##arg); \
+ pr_debug(fmt, ##arg); \
} while (0)
enum vmk80xx_model {
@@ -1240,8 +1240,7 @@ static int vmk80xx_attach(struct comedi_device *cdev,
minor = cdev->minor;
- printk(KERN_INFO
- "comedi%d: vmk80xx: board #%d [%s] attached to comedi\n",
+ pr_info("comedi%d: vmk80xx: board #%d [%s] attached to comedi\n",
minor, dev->count, dev->board.name);
up(&dev->limit_sem);
@@ -1384,11 +1383,11 @@ static int vmk80xx_probe(struct usb_interface *intf,
if (dev->board.model == VMK8061_MODEL) {
vmk80xx_read_eeprom(dev, IC3_VERSION);
- printk(KERN_INFO "comedi#: vmk80xx: %s\n", dev->fw.ic3_vers);
+ pr_info("comedi#: vmk80xx: %s\n", dev->fw.ic3_vers);
if (vmk80xx_check_data_link(dev)) {
vmk80xx_read_eeprom(dev, IC6_VERSION);
- printk(KERN_INFO "comedi#: vmk80xx: %s\n",
+ pr_info("comedi#: vmk80xx: %s\n",
dev->fw.ic6_vers);
} else {
dbgcm("comedi#: vmk80xx: no conn. to CPU\n");
@@ -1400,7 +1399,7 @@ static int vmk80xx_probe(struct usb_interface *intf,
dev->probed = 1;
- printk(KERN_INFO "comedi#: vmk80xx: board #%d [%s] now attached\n",
+ pr_info("comedi#: vmk80xx: board #%d [%s] now attached\n",
dev->count, dev->board.name);
mutex_unlock(&glb_mutex);
@@ -1435,7 +1434,7 @@ static void vmk80xx_disconnect(struct usb_interface *intf)
kfree(dev->usb_rx_buf);
kfree(dev->usb_tx_buf);
- printk(KERN_INFO "comedi#: vmk80xx: board #%d [%s] now detached\n",
+ pr_info("comedi#: vmk80xx: board #%d [%s] now detached\n",
dev->count, dev->board.name);
up(&dev->limit_sem);
@@ -1462,7 +1461,7 @@ static int __init vmk80xx_init(void)
{
int retval;
- printk(KERN_INFO "vmk80xx: version 0.8.01 "
+ pr_info("vmk80xx: version 0.8.01 " \
"Manuel Gebele <forensixs@....de>\n");
retval = comedi_driver_register(&driver_vmk80xx);
--
1.7.11.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists