From 4bb99294118a9af9075d4fb6f6cb7e60f5e7eeae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Majerech?= Date: Sat, 6 Dec 2014 02:49:18 +0100 Subject: [PATCH] ivi-shell: Say something when configuration is missing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 [Pekka: include Tanibata's suggestion, fix file name, fix surrounding coding style] Signed-off-by: Pekka Paalanen --- ivi-shell/ivi-shell.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ivi-shell/ivi-shell.c b/ivi-shell/ivi-shell.c index a14010ec..bb3ef8fe 100644 --- a/ivi-shell/ivi-shell.c +++ b/ivi-shell/ivi-shell.c @@ -382,9 +382,9 @@ ivi_shell_setting_create(struct ivi_shell_setting *dest, 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; }