From 4f09e9aa4e7cef7fc97504450356cce416092a48 Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Fri, 9 Jun 2017 16:32:44 +0900 Subject: [PATCH] pass: Remove unneeded log message This patch removes the unneeded and duplicate log messages in order to simplify the log during init/exit of PASS. Also, this patch shows the supported scenarios except for un-supported scenarios. Change-Id: I5053e9b5b323ed2eb3a83c4ec0418995cbecf9a7 Signed-off-by: Chanwoo Choi --- src/core/main.c | 6 ++---- src/pass/pass-gov.c | 4 ---- src/pass/pass.c | 2 +- src/pmqos/pmqos.c | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/core/main.c b/src/core/main.c index 233ef0e..f174544 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -50,7 +50,7 @@ static void sig_quit(int signo) static void sig_usr1(int signo) { - _D("received SIGUSR1 signal %d, PASS'll be finished!", signo); + _D("received SIGUSR1 signal %d", signo); ecore_main_loop_quit(); } @@ -63,10 +63,8 @@ static int pass_main(int argc, char **argv) devices_init(NULL); add_booting_done_handler(NULL); ret = booting_finished(); - if (ret == 1) { - _I("notify relaunch"); + if (ret == 1) device_notify(DEVICE_NOTIFIER_BOOTING_DONE, &ret); - } signal(SIGTERM, sig_quit); signal(SIGUSR1, sig_usr1); diff --git a/src/pass/pass-gov.c b/src/pass/pass-gov.c index 13f16a2..eec38d8 100644 --- a/src/pass/pass-gov.c +++ b/src/pass/pass-gov.c @@ -516,8 +516,6 @@ static int __pass_governor_init(struct pass_policy *policy) return ret; } - _I("Initialize governor for '%s' resource", cdata->res_name); - if (policy->state == PASS_ON) pass_governor_update(policy, PASS_GOV_START); @@ -568,8 +566,6 @@ static int __pass_governor_exit(struct pass_policy *policy) policy->governor = NULL; - _I("Exit governor for '%s' resource", cdata->res_name); - return 0; } diff --git a/src/pass/pass.c b/src/pass/pass.c index 4500f61..1c52750 100644 --- a/src/pass/pass.c +++ b/src/pass/pass.c @@ -317,7 +317,7 @@ static void pass_exit(void *data) return; } - _I("exit PASS daemon without any errors\n"); + _I("Exit PASS daemon without any errors\n"); } /* diff --git a/src/pmqos/pmqos.c b/src/pmqos/pmqos.c index 9e8cbbc..248d5e4 100644 --- a/src/pmqos/pmqos.c +++ b/src/pmqos/pmqos.c @@ -388,10 +388,8 @@ static int get_methods_from_conf(const char *path, struct edbus_method **edbus_m for (i = 0; i < scenarios.num; ++i) { /* if this scenario does not support */ - if (!scenarios.list[i].support) { - _I("do not support [%s] scenario", scenarios.list[i].name); + if (!scenarios.list[i].support) continue; - } methods[i].member = scenarios.list[i].name; methods[i].signature = "i"; -- 2.34.1