sensord: fix the bug about calling get_client_name 82/64482/2
authorkibak.yoon <kibak.yoon@samsung.com>
Thu, 24 Mar 2016 01:01:59 +0000 (10:01 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Fri, 1 Apr 2016 10:35:54 +0000 (19:35 +0900)
Change-Id: I671c013bad4215ab41a0ec47bb88ad6fa2621077
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/client/client.cpp

index ac357bf..4a8854f 100644 (file)
@@ -1042,7 +1042,7 @@ API int sensord_set_attribute_int(int handle, int attribute, int value)
 
        if (!cmd_channel->cmd_set_attribute_int(attribute, value)) {
                _E("Sending cmd_set_attribute_int(%d, %d) failed for %s",
-                       client_id, value, get_client_name);
+                       client_id, value, get_client_name());
                return -EPERM;
        }
 
@@ -1079,7 +1079,7 @@ API int sensord_set_attribute_str(int handle, int attribute, const char *value,
 
        if (!cmd_channel->cmd_set_attribute_str(attribute, value, value_len)) {
                _E("Sending cmd_set_attribute_str(%d, %d, 0x%x) failed for %s",
-                       client_id, value_len, value, get_client_name);
+                       client_id, value_len, value, get_client_name());
                return -EPERM;
        }