aboutsummaryrefslogtreecommitdiffstats
path: root/cfg.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-08-10 09:44:09 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-08-10 09:44:09 +0000
commit994c3f1ff0c2b7ab62cfa413827ab17667805aa5 (patch)
tree58f94e3a69cee7187c02a77f19890b99e0910cfc /cfg.c
parent0cb72bf49d0a0decda8285f8fa5a559bffa9e118 (diff)
downloadlcd4linux-994c3f1ff0c2b7ab62cfa413827ab17667805aa5.tar.gz
[lcd4linux @ 2000-08-10 09:44:09 by reinelt]
new debugging scheme: error(), info(), debug() uses syslog if in daemon mode git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@64 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'cfg.c')
-rw-r--r--cfg.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/cfg.c b/cfg.c
index af0afd4..59805b2 100644
--- a/cfg.c
+++ b/cfg.c
@@ -1,4 +1,4 @@
-/* $Id: cfg.c,v 1.8 2000/07/31 06:46:35 reinelt Exp $
+/* $Id: cfg.c,v 1.9 2000/08/10 09:44:09 reinelt Exp $
*
* config file stuff
*
@@ -20,6 +20,11 @@
*
*
* $Log: cfg.c,v $
+ * Revision 1.9 2000/08/10 09:44:09 reinelt
+ *
+ * new debugging scheme: error(), info(), debug()
+ * uses syslog if in daemon mode
+ *
* Revision 1.8 2000/07/31 06:46:35 reinelt
*
* eliminated some compiler warnings with glibc
@@ -103,6 +108,7 @@
#include <ctype.h>
#include <errno.h>
+#include "debug.h"
#include "cfg.h"
typedef struct {
@@ -211,7 +217,7 @@ int cfg_read (char *file)
stream=fopen (file, "r");
if (stream==NULL) {
- fprintf (stderr, "open(%s) failed: %s\n", file, strerror(errno));
+ error ("open(%s) failed: %s", file, strerror(errno));
return-1;
}