pass: Remove unneeded log message 08/133208/1
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 9 Jun 2017 07:32:44 +0000 (16:32 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 9 Jun 2017 07:44:57 +0000 (16:44 +0900)
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 <cw00.choi@samsung.com>
src/core/main.c
src/pass/pass-gov.c
src/pass/pass.c
src/pmqos/pmqos.c

index 233ef0ef78440cfc5fa6f30eafb20fcff24ef323..f1745449468dca74bba3ddb24d82a98ccc945509 100644 (file)
@@ -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);
 
index 13f16a292f75aca21e3463e208dad0c6ab63c69d..eec38d8e95e4609915487ef80c65af848add999f 100644 (file)
@@ -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;
 }
 
index 4500f615da9312966fd912f3c1b92ddb59822082..1c52750f0014a93f7c7ca55ba2b3a34e055080c1 100644 (file)
@@ -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");
 }
 
 /*
index 9e8cbbccc245813df9a10244e450e6246413d146..248d5e450d033a2c0228f77a714bcb27beae91c3 100644 (file)
@@ -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";