aboutsummaryrefslogtreecommitdiffstats
path: root/lcd4linux.c
diff options
context:
space:
mode:
authorvolker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-09-25 12:57:51 +0000
committervolker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-09-25 12:57:51 +0000
commitf848e286bd8dac72e6bdebf97333c4ad3a3a4891 (patch)
tree80fb85aff3fe8d7a4db85dd668b8dca30f2da39c /lcd4linux.c
parenta50e7c8b4e39f0b11bebe70b43e2a39e72a3fb71 (diff)
downloadlcd4linux-f848e286bd8dac72e6bdebf97333c4ad3a3a4891.tar.gz
additional debug output
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1045 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'lcd4linux.c')
-rw-r--r--lcd4linux.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lcd4linux.c b/lcd4linux.c
index dda62cf..79941ca 100644
--- a/lcd4linux.c
+++ b/lcd4linux.c
@@ -289,11 +289,15 @@ int main(int argc, char *argv[])
info("invoked without full path; restart may not work!");
}
- if (cfg_init(cfg) == -1)
+ if (cfg_init(cfg) == -1) {
+ error("Error reading configuration. Exit!");
exit(1);
+ }
- if (plugin_init() == -1)
+ if (plugin_init() == -1) {
+ error("Error initializing plugins. Exit!");
exit(1);
+ }
display = cfg_get(NULL, "Display", NULL);
if (display == NULL || *display == '\0') {
@@ -344,6 +348,7 @@ int main(int argc, char *argv[])
debug("initializing driver %s", driver);
if (drv_init(section, driver, quiet) == -1) {
+ error("Error initializing driver %s: Exit!", driver);
pid_exit(pidfile);
exit(1);
}