Commit 3fffdf20 authored by Mark Rankilor's avatar Mark Rankilor Committed by Greg Kroah-Hartman

Staging: comedi: added log level to printk's in comedi_fops.c

This patches comedi_fops.c to add kernel log level to some printk calls
Signed-off-by: default avatarMark Rankilor <reodge@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3c034cce
...@@ -736,7 +736,8 @@ static int check_insn_config_length(struct comedi_insn *insn, ...@@ -736,7 +736,8 @@ static int check_insn_config_length(struct comedi_insn *insn,
/* by default we allow the insn since we don't have checks for /* by default we allow the insn since we don't have checks for
* all possible cases yet */ * all possible cases yet */
default: default:
printk("comedi: no check for data length of config insn id " printk(KERN_WARNING
"comedi: no check for data length of config insn id "
"%i is implemented.\n" "%i is implemented.\n"
" Add a check to %s in %s.\n" " Add a check to %s in %s.\n"
" Assuming n=%i is correct.\n", data[0], __func__, " Assuming n=%i is correct.\n", data[0], __func__,
...@@ -1925,7 +1926,7 @@ static int __init comedi_init(void) ...@@ -1925,7 +1926,7 @@ static int __init comedi_init(void)
} }
comedi_class = class_create(THIS_MODULE, "comedi"); comedi_class = class_create(THIS_MODULE, "comedi");
if (IS_ERR(comedi_class)) { if (IS_ERR(comedi_class)) {
printk("comedi: failed to create class"); printk(KERN_ERR "comedi: failed to create class");
cdev_del(&comedi_cdev); cdev_del(&comedi_cdev);
unregister_chrdev_region(MKDEV(COMEDI_MAJOR, 0), unregister_chrdev_region(MKDEV(COMEDI_MAJOR, 0),
COMEDI_NUM_MINORS); COMEDI_NUM_MINORS);
...@@ -1971,7 +1972,8 @@ module_exit(comedi_cleanup); ...@@ -1971,7 +1972,8 @@ module_exit(comedi_cleanup);
void comedi_error(const struct comedi_device *dev, const char *s) void comedi_error(const struct comedi_device *dev, const char *s)
{ {
printk("comedi%d: %s: %s\n", dev->minor, dev->driver->driver_name, s); printk(KERN_ERR "comedi%d: %s: %s\n", dev->minor,
dev->driver->driver_name, s);
} }
void comedi_event(struct comedi_device *dev, struct comedi_subdevice *s) void comedi_event(struct comedi_device *dev, struct comedi_subdevice *s)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment