added a debug message
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 19 Feb 2003 04:21:22 +0000 (04:21 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 19 Feb 2003 04:21:22 +0000 (04:21 +0000)
comedi/comedi_fops.c

index d1baac2f78db46dc4be1bf360bc57d183ad34f9b..bd80f7f3904c566a5fef002e15df6d3303a4d906 100644 (file)
@@ -686,6 +686,7 @@ static int parse_insn(comedi_device *dev,comedi_insn *insn,lsampl_t *data,void *
        }else{
                /* a subdevice instruction */
                if(insn->subdev>=dev->n_subdevices){
+                       DPRINTK("subdevice %d out of range\n",insn->subdev);
                        ret=-EINVAL;
                        goto out;
                }