pass: Use error log macro with _E when error happen 81/142981/2
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 8 Aug 2017 06:16:13 +0000 (15:16 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 8 Aug 2017 06:45:17 +0000 (15:45 +0900)
The PASS has the following log macros. When error happen,
the modules have to use the _E macro.
- _I : info
- _D : debug
- _E : error
- _W : warning

Change-Id: I02ac5b6ce4d59519964bc7af78910d8231d98535
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/core/edbus-handler.c
src/pass/pass-hal.c
src/shared/dbus.c

index 61c1cea..17c4944 100644 (file)
@@ -347,7 +347,7 @@ static void request_name_cb(void *data, DBusMessage *msg, DBusError *error)
        int r;
 
        if (!msg) {
-               _D("invalid DBusMessage!");
+               _E("invalid DBusMessage!");
                return;
        }
 
index 3c1a5fa..2308e23 100644 (file)
@@ -739,13 +739,13 @@ int pass_get_resource(struct pass_resource *res)
        ret = pass_get_hal_info(name,
                        (const struct pass_resource_info **)&info);
        if (ret < 0) {
-               _D("Failed to get %s.so for '%s' resource\n",
+               _E("Failed to get %s.so for '%s' resource\n",
                                name, res_name);
                return -EINVAL;
        }
 
        if (!info->open || !info->close) {
-               _D("Failed to get functions of %s.so for '%s' resource\n",
+               _E("Failed to get functions of %s.so for '%s' resource\n",
                                name, res_name);
                return -EPERM;
        }
@@ -770,7 +770,7 @@ int pass_get_resource(struct pass_resource *res)
        };
 
        if (ret < 0) {
-               _D("Failed to open %s.so for '%s' resource\n",
+               _E("Failed to open %s.so for '%s' resource\n",
                                        name, res_name);
                return -EINVAL;
        }
@@ -818,7 +818,7 @@ int pass_put_resource(struct pass_resource *res)
        };
 
        if (ret < 0) {
-               _D("Failed to close %s.so for '%s' resource\n",
+               _E("Failed to close %s.so for '%s' resource\n",
                                        info->name, res_name);
                return -EINVAL;
        }
index 98b7907..f650e1b 100644 (file)
@@ -369,7 +369,7 @@ static void cb_pending(DBusPendingCall *pending, void *user_data)
 
        ret = dbus_pending_call_get_completed(pending);
        if (!ret) {
-               _I("dbus_pending_call_get_completed() fail");
+               _E("dbus_pending_call_get_completed() fail");
                dbus_pending_call_unref(pending);
                return;
        }