ivi-shell: Say something when configuration is missing
When ivi-module is not set in weston.conf, we probably want to tell the
user about their error instead of just dying.
Signed-off-by: Ondřej Majerech <majerech.o@gmail.com>
[Pekka: include Tanibata's suggestion, fix file name, fix surrounding
coding style]
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
diff --git a/ivi-shell/ivi-shell.c b/ivi-shell/ivi-shell.c
index a14010e..bb3ef8f 100644
--- a/ivi-shell/ivi-shell.c
+++ b/ivi-shell/ivi-shell.c
@@ -382,9 +382,9 @@
section = weston_config_get_section(config, "ivi-shell", NULL, NULL);
- if (weston_config_section_get_string(
- section, "ivi-module", &dest->ivi_module, NULL) != 0)
- {
+ if (weston_config_section_get_string(section, "ivi-module",
+ &dest->ivi_module, NULL) != 0) {
+ weston_log("ivi-shell: No ivi-module set in config\n");
result = -1;
}