projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebdceea
)
Added logging and error functions.
author
David Schleef
<ds@schleef.org>
Thu, 25 Apr 2002 21:50:57 +0000
(21:50 +0000)
committer
David Schleef
<ds@schleef.org>
Thu, 25 Apr 2002 21:50:57 +0000
(21:50 +0000)
comedi/kcomedilib/kcomedilib_main.c
patch
|
blob
|
history
diff --git
a/comedi/kcomedilib/kcomedilib_main.c
b/comedi/kcomedilib/kcomedilib_main.c
index 4dd26cc171792832e55bdf98bfe3352f450b1ed5..30066b58ca7bda87f86f08e72614fe5e50eb4d8c 100644
(file)
--- 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;
+}
+