From 4fa0c2406c316f6c6e5894fe12493f7dba176a99 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 2 Aug 2001 01:33:45 +0000 Subject: [PATCH] making the common 'subdevice does not support commands' debugging message slightly more informative --- comedi/comedi_fops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index fcef9945..3275a7a7 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -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; } -- 2.26.2