From: David Schleef Date: Thu, 25 Apr 2002 21:50:57 +0000 (+0000) Subject: Added logging and error functions. X-Git-Tag: r0_7_65~87 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9e4b810a7725b6e402979d71aa7938f4fc226408;p=comedi.git Added logging and error functions. --- diff --git a/comedi/kcomedilib/kcomedilib_main.c b/comedi/kcomedilib/kcomedilib_main.c index 4dd26cc1..30066b58 100644 --- a/comedi/kcomedilib/kcomedilib_main.c +++ b/comedi/kcomedilib/kcomedilib_main.c @@ -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; +} +