Skip to content

Commit

Permalink
Staging: comedi: kcomedilib: fix coding style issues in kcomedilib_ma…
Browse files Browse the repository at this point in the history
…in.c

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

Signed-off-by: Gustavo Silva <silvagustavo@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Gustavo Silva authored and Greg Kroah-Hartman committed Jul 8, 2010
1 parent 1309e61 commit 2312202
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/comedi/kcomedilib/kcomedilib_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 2312202

Please sign in to comment.