pass: Remove unneeded debug messages
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 2 Feb 2017 03:22:31 +0000 (12:22 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 2 Feb 2017 23:43:19 +0000 (08:43 +0900)
This patch removes the unnedded debug message.

Change-Id: Id1d7d4845ab52393e410f4e5ab968d5afba786a4
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/core/boot.c
src/core/config-parser.c
src/core/device-notifier.c
src/core/devices.c
src/core/edbus-handler.c
src/pass/pass-parser.c
src/pmqos/pmqos.c

index c1cbb615fdb25e41e0924faa786e006e06645be9..1c2ad7f51e34e2e8beb22665fb12f468a2f99479 100644 (file)
@@ -49,8 +49,6 @@ int booting_finished(void)
                return ret;
        }
 
-       _I("System State: (%s)", state);
-
        len = strlen(state) + 1;
        if (!strncmp(state, SYSTEMD_STATE_RUNNING, len) ||
                !strncmp(state, SYSTEMD_STATE_DEGRADED, len))
@@ -109,7 +107,6 @@ static void booting_done_received(void *data, DBusMessage *msg)
        pm_unlock_internal(INTERNAL_LOCK_BOOTING, LCD_OFF, PM_SLEEP_MARGIN);
        */
 
-       _I("signal booting done");
        broadcast_edbus_signal(DEVICED_PATH_CORE,
                        DEVICED_INTERFACE_CORE,
                        SIGNAL_BOOTING_DONE,
index 3278efef203677178fa6866559acded5d5c5e72f..880d3582a7f7b7e9ca90dd9885ed58581fbc3290 100644 (file)
@@ -114,7 +114,7 @@ int config_parse(const char *file_name, int cb(struct parse_result *result,
                        }
                }
        }
-       _D("Success to load %s", file_name);
+
        fclose(f);
        return 0;
 
index e989c336fb2c8a0dc3aad410cf97ac74831de3ea..285c2321ec17c11361bb0c74eea7077454317745 100644 (file)
@@ -40,8 +40,6 @@ int register_notifier(enum device_notifier_type status, int (*func)(void *data))
        dd_list *n;
        struct device_notifier *notifier;
 
-       _I("%d, %x", status, func);
-
        if (!func) {
                _E("invalid func address!");
                return -EINVAL;
index 837f656e877516c3fd956688d097f87e7738353d..51e66c2291843ae0e1b6f11e600a0b9a43f31be7 100644 (file)
@@ -68,7 +68,6 @@ static DBusMessage *edbus_device_list(E_DBus_Object *obj, DBusMessage *msg)
        dd_list *elem;
        const struct device_ops *dev;
 
-       _I("device list!");
        DD_LIST_FOREACH(dev_head, elem, dev)
                _I("%s", dev->name);
 
@@ -92,7 +91,6 @@ void devices_init(void *data)
                        continue;
                }
 
-               _D("[%s] initialize", dev->name);
                if (dev->init)
                        dev->init(data);
        }
@@ -109,7 +107,6 @@ void devices_exit(void *data)
        const struct device_ops *dev;
 
        DD_LIST_FOREACH(dev_head, elem, dev) {
-               _D("[%s] deinitialize", dev->name);
                if (dev->exit)
                        dev->exit(data);
        }
index eec24613a43d90e03c2d0cc29259f472837737e6..b97e9fe4bbe7f7b39c1d3d4ee52a02acdaab6871 100644 (file)
@@ -884,8 +884,6 @@ static void request_name_cb(void *data, DBusMessage *msg, DBusError *error)
                dbus_error_free(&err);
                return;
        }
-
-       _I("Request Name reply : %d", val);
 }
 
 static void check_owner_name(void)
@@ -917,7 +915,6 @@ static void check_owner_name(void)
                dbus_message_iter_get_basic(&iter, &pid);
                if (get_cmdline_name(pid, exe_name, PATH_MAX) != 0)
                        goto out;
-               _I("%s(%d)", exe_name, pid);
 
 out:
                dbus_message_unref(msg);
index 760c6405078c1dd5eb9928ed18e158747960ea69..98d34e353545ca07c59aaeae268019c638dd9323 100644 (file)
@@ -444,9 +444,8 @@ int pass_get_table(struct pass_policy *policy, char *pass_conf_path)
 
        if (policy->scenario.state == PASS_UNUSED)
                _W("%s don't include the list of pass-scenario\n");
-       else
-               _I("can%s use pass-scenario",
-                               policy->scenario.state ? "" : "not");
+       else if (policy->scenario.state == PASS_OFF)
+               _I("cannot use pass-scenario");
 
        return 0;
 }
index da2b61f30a0aa70e864c187568d0c1cbec5e9607..76e57826a235fd9a9232fdf7a3e1f91d8809bd0f 100644 (file)
@@ -422,7 +422,6 @@ static int booting_done(void *data)
        done = (int)data;
        if (!done)
                goto out;
-       _I("booting done");
 
        /* register edbus methods */
        ret = register_edbus_method(DEVICED_PATH_PMQOS, edbus_methods,