making the common 'subdevice does not support commands' debugging message
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 2 Aug 2001 01:33:45 +0000 (01:33 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 2 Aug 2001 01:33:45 +0000 (01:33 +0000)
slightly more informative

comedi/comedi_fops.c

index fcef9945a7f6d5d699c9572e5fa9424dfaa91d83..3275a7a7d4755036916a09898761e168f635fa2d 100644 (file)
@@ -834,7 +834,7 @@ static int do_cmd_ioctl(comedi_device *dev,void *arg,void *file)
        }
 
        if(!s->do_cmd || !s->async){
-               DPRINTK("subdevice does not support commands\n");
+               DPRINTK("subdevice %i does not support commands\n", user_cmd.subdev);
                return -EIO;
        }
 
@@ -995,7 +995,7 @@ static int do_cmdtest_ioctl(comedi_device *dev,void *arg,void *file)
        }
 
        if(!s->do_cmd){
-               DPRINTK("subdevice does not support commands\n");
+               DPRINTK("subdevice %i does not support commands\n", user_cmd.subdev);
                return -EIO;
        }