In cmdtest, use DPRINTK instead of comedi_error.
authorIan Abbott <abbotti@mev.co.uk>
Fri, 9 Nov 2007 15:23:42 +0000 (15:23 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Fri, 9 Nov 2007 15:23:42 +0000 (15:23 +0000)
comedi/drivers/amplc_pci224.c

index d789525cad16bb3d93729f4d9f26a6e7fb98d92d..103993a326c19d3b5492f2ee64560ee2855521a2 100644 (file)
@@ -989,14 +989,16 @@ pci224_ao_cmdtest(comedi_device * dev, comedi_subdevice * s, comedi_cmd * cmd)
                }
                if (errors) {
                        if (errors & dupchan_err) {
-                               comedi_error(dev,
+                               DPRINTK("comedi%d: " DRIVER_NAME
+                                       ": ao_cmdtest: "
                                        "entries in chanlist must contain no "
-                                       "duplicate channels\n");
+                                       "duplicate channels\n", dev->minor);
                        }
                        if (errors & range_err) {
-                               comedi_error(dev,
+                               DPRINTK("comedi%d: " DRIVER_NAME
+                                       ": ao_cmdtest: "
                                        "entries in chanlist must all have "
-                                       "the same range index\n");
+                                       "the same range index\n", dev->minor);
                        }
                        err++;
                }