Added warning message to encourage checks of config insn data lengths.
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 9 Mar 2006 13:34:34 +0000 (13:34 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 9 Mar 2006 13:34:34 +0000 (13:34 +0000)
comedi/comedi_fops.c

index f892111620f17eb4837966402aae1f76e21d510f..922d98792b12689dbd1d1f52aa04009fbcf0e1c6 100644 (file)
@@ -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;
        }