Added logging and error functions.
authorDavid Schleef <ds@schleef.org>
Thu, 25 Apr 2002 21:50:57 +0000 (21:50 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 25 Apr 2002 21:50:57 +0000 (21:50 +0000)
comedi/kcomedilib/kcomedilib_main.c

index 4dd26cc171792832e55bdf98bfe3352f450b1ed5..30066b58ca7bda87f86f08e72614fe5e50eb4d8c 100644 (file)
@@ -805,3 +805,25 @@ int comedi_unmap(unsigned int minor, unsigned int subdev)
        return 0;
 }
 
+
+int comedi_loglevel(int newlevel)
+{
+       return 0;
+}
+
+int comedi_perror(const char *message)
+{
+       rt_printk("%s: unknown error\n",message);
+}
+
+char *comedi_strerror(int err)
+{
+       return "unknown error";
+} 
+
+int comedi_fileno(comedi_t *dev)
+{
+       /* return something random */
+       return ((comedi_device *)dev)->minor;
+}
+