From: David Schleef Date: Tue, 10 Jul 2001 22:31:16 +0000 (+0000) Subject: Added debug_ptr(). Fixed do_test_for_cmd() X-Git-Tag: r0_7_16~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b830e61d3f85a416df8b58edc6158f64b2c5230f;p=comedilib.git Added debug_ptr(). Fixed do_test_for_cmd() --- diff --git a/lib/filler.c b/lib/filler.c index 0bc8e33..b3a4f5c 100644 --- a/lib/filler.c +++ b/lib/filler.c @@ -52,6 +52,8 @@ int get_subdevices(comedi_t *it) subdevice *r; s=malloc(sizeof(comedi_subdinfo)*it->n_subdevices); + debug_ptr(s); + ret=ioctl_subdinfo(it->fd,s); debug_int(ret); @@ -146,7 +148,7 @@ static int do_test_for_cmd(comedi_t *dev,unsigned int subdevice) memset(&it,0,sizeof(it)); - it.subdev = 0; + it.subdev = subdevice; it.start_src = TRIG_ANY; it.scan_begin_src = TRIG_ANY; it.convert_src = TRIG_ANY;