Skip to contentSkip to conversation

Staging: comedi: kcomedilib: fix coding style issues in kcomedilib_main.c

PATCH New Gustavo Silva 1 participant 1 message Jun 27, 2010 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: comedi: kcomedilib: fix coding style issues in kcomedilib_main.c

This is a patch to the kcomedilib_main.c file that fixes up some printk() warning issues.

---
 .../staging/comedi/kcomedilib/kcomedilib_main.c    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/comedi/kcomedilib/kcomedilib_main.c +2 -2
index 863aae4..0252b44 100644
@@ -93,7 +93,7 @@ static int comedi_do_insn(struct comedi_device *dev, struct comedi_insn *insn)
 	s = dev->subdevices + insn->subdev;
 
 	if (s->type == COMEDI_SUBD_UNUSED) {
-		printk("%d not useable subdevice\n", insn->subdev);
+		printk(KERN_ERR "%d not useable subdevice\n", insn->subdev);
 		ret = -EIO;
 		goto error;
 	}
@@ -102,7 +102,7 @@ static int comedi_do_insn(struct comedi_device *dev, struct comedi_insn *insn)
 
 	ret = comedi_check_chanlist(s, 1, &insn->chanspec);
 	if (ret < 0) {
-		printk("bad chanspec\n");
+		printk(KERN_ERR "bad chanspec\n");
 		ret = -EINVAL;
 		goto error;
 	}
Signature · 1 line
1.7.1