aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorreinelt <>2004-05-26 11:37:36 +0000
committerreinelt <>2004-05-26 11:37:36 +0000
commit5ca4d384ecc4ff55cc61a1b9145f83aedf3d6406 (patch)
treeb885778697b3b577c7e9a2dd110679a20e669e26 /debug.c
parent31ba3b03e6df7bc0ed59739090aca333469f8aa3 (diff)
downloadlcd4linux-5ca4d384ecc4ff55cc61a1b9145f83aedf3d6406.tar.gz
[lcd4linux @ 2004-05-26 11:37:35 by reinelt]
Curses driver ported.
Diffstat (limited to '')
-rw-r--r--debug.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/debug.c b/debug.c
index 937bc04..55bb16d 100644
--- a/debug.c
+++ b/debug.c
@@ -1,4 +1,4 @@
-/* $Id: debug.c,v 1.7 2004/02/10 07:42:35 reinelt Exp $
+/* $Id: debug.c,v 1.8 2004/05/26 11:37:36 reinelt Exp $
*
* debug() and error() functions
*
@@ -22,6 +22,10 @@
*
*
* $Log: debug.c,v $
+ * Revision 1.8 2004/05/26 11:37:36 reinelt
+ *
+ * Curses driver ported.
+ *
* Revision 1.7 2004/02/10 07:42:35 reinelt
* cut off all old-style files which are no longer used with NextGeneration
*
@@ -87,12 +91,10 @@ void message (int level, const char *format, ...)
va_end(ap);
if (!running_background) {
- // Fixme
-#if 0
-#ifdef WITH_TEXT
- extern int curs_err(char *);
- if (!curs_err(buffer))
-#endif
+
+#ifdef WITH_CURSES
+ extern int curses_error(char *);
+ if (!curses_error(buffer))
#endif
fprintf (level?stdout:stderr, "%s\n", buffer);
}
@@ -102,7 +104,7 @@ void message (int level, const char *format, ...)
if (!log_open) {
openlog ("LCD4Linux", LOG_PID, LOG_USER);
- log_open=1;
+ log_open = 1;
}
switch (level) {