aboutsummaryrefslogtreecommitdiffstats
path: root/display.c
diff options
context:
space:
mode:
authorreinelt <>2000-08-10 09:44:09 +0000
committerreinelt <>2000-08-10 09:44:09 +0000
commita71c28313e3e3ef0f2e235f78eaf38fca52deb1f (patch)
tree58f94e3a69cee7187c02a77f19890b99e0910cfc /display.c
parentc6583cea7fd9fac922a9cf653a66b431a3539f44 (diff)
downloadlcd4linux-a71c28313e3e3ef0f2e235f78eaf38fca52deb1f.tar.gz
[lcd4linux @ 2000-08-10 09:44:09 by reinelt]
new debugging scheme: error(), info(), debug() uses syslog if in daemon mode
Diffstat (limited to 'display.c')
-rw-r--r--display.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/display.c b/display.c
index ca3bb0c..bd166e5 100644
--- a/display.c
+++ b/display.c
@@ -1,4 +1,4 @@
-/* $Id: display.c,v 1.19 2000/08/09 09:50:29 reinelt Exp $
+/* $Id: display.c,v 1.20 2000/08/10 09:44:09 reinelt Exp $
*
* framework for device drivers
*
@@ -20,6 +20,11 @@
*
*
* $Log: display.c,v $
+ * Revision 1.20 2000/08/10 09:44:09 reinelt
+ *
+ * new debugging scheme: error(), info(), debug()
+ * uses syslog if in daemon mode
+ *
* Revision 1.19 2000/08/09 09:50:29 reinelt
*
* opened 0.98 development
@@ -138,6 +143,8 @@
#include <stdio.h>
#include <math.h>
+
+#include "debug.h"
#include "cfg.h"
#include "display.h"
@@ -195,7 +202,7 @@ int lcd_init (char *driver)
}
}
}
- fprintf (stderr, "lcd_init(%s) failed: no such display\n", driver);
+ error ("lcd_init(%s) failed: no such display", driver);
return -1;
}