From: Chanwoo Choi Date: Thu, 2 Feb 2017 03:22:31 +0000 (+0900) Subject: pass: Remove unneeded debug messages X-Git-Tag: submit/tizen/20170328.004502~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dceb24ac6653edda53802e989e8c39f722fb3751;p=platform%2Fcore%2Fsystem%2Fpass.git pass: Remove unneeded debug messages This patch removes the unnedded debug message. Change-Id: Id1d7d4845ab52393e410f4e5ab968d5afba786a4 Signed-off-by: Chanwoo Choi --- diff --git a/src/core/boot.c b/src/core/boot.c index c1cbb61..1c2ad7f 100644 --- a/src/core/boot.c +++ b/src/core/boot.c @@ -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, diff --git a/src/core/config-parser.c b/src/core/config-parser.c index 3278efe..880d358 100644 --- a/src/core/config-parser.c +++ b/src/core/config-parser.c @@ -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; diff --git a/src/core/device-notifier.c b/src/core/device-notifier.c index e989c33..285c232 100644 --- a/src/core/device-notifier.c +++ b/src/core/device-notifier.c @@ -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; diff --git a/src/core/devices.c b/src/core/devices.c index 837f656..51e66c2 100644 --- a/src/core/devices.c +++ b/src/core/devices.c @@ -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); } diff --git a/src/core/edbus-handler.c b/src/core/edbus-handler.c index eec2461..b97e9fe 100644 --- a/src/core/edbus-handler.c +++ b/src/core/edbus-handler.c @@ -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); diff --git a/src/pass/pass-parser.c b/src/pass/pass-parser.c index 760c640..98d34e3 100644 --- a/src/pass/pass-parser.c +++ b/src/pass/pass-parser.c @@ -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; } diff --git a/src/pmqos/pmqos.c b/src/pmqos/pmqos.c index da2b61f..76e5782 100644 --- a/src/pmqos/pmqos.c +++ b/src/pmqos/pmqos.c @@ -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,