projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85a8940
)
Added warning message to encourage checks of config insn data lengths.
author
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 9 Mar 2006 13:34:34 +0000
(13:34 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 9 Mar 2006 13:34:34 +0000
(13:34 +0000)
comedi/comedi_fops.c
patch
|
blob
|
history
diff --git
a/comedi/comedi_fops.c
b/comedi/comedi_fops.c
index f892111620f17eb4837966402aae1f76e21d510f..922d98792b12689dbd1d1f52aa04009fbcf0e1c6 100644
(file)
--- a/
comedi/comedi_fops.c
+++ b/
comedi/comedi_fops.c
@@
-638,6
+638,8
@@
static int check_insn_config_length(comedi_insn *insn, lsampl_t *data)
if( insn->n == 2 ) return 0;
//by default we allow the insn since we don't have checks for all possible cases yet
default:
+ rt_printk("No check for data length of config insn id %i implemented. Assuming n=%i is correct.\n",
+ data[0], insn->n);
return 0;
break;
}