From 362d414f791b2b467564c46b309d8630aabc3b8d Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 9 Mar 2006 13:34:34 +0000 Subject: [PATCH] Added warning message to encourage checks of config insn data lengths. --- comedi/comedi_fops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index f8921116..922d9879 100644 --- 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; } -- 2.26.2