Change the method to show error code 86/202886/4
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 5 Apr 2019 11:14:17 +0000 (20:14 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 8 Apr 2019 05:35:30 +0000 (14:35 +0900)
Change-Id: Iafd993fc231974afd350222d888067a4ce4bdacb
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/autofill-daemon.c

index e1f1047..9abe0e5 100644 (file)
@@ -626,7 +626,7 @@ static void __error_info_recv_cb(void *user_data, int context_id, rpc_port_autof
     if (sender_client)
         rpc_port_AutofillAppPort_autofill_error_info_received_cb_invoke(sender_client->error_info_cb, error_info_h);
 
-    LOGD("error code : %x", error_code);
+    LOGD("error code : %#x, message : '%s'", error_code, get_error_message(error_code));
 
     if (app_id)
         free(app_id);
@@ -634,7 +634,7 @@ static void __error_info_recv_cb(void *user_data, int context_id, rpc_port_autof
 
 static void __on_connected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data)
 {
-    LOGI("[__RPC_PORT__] connected");
+    LOGI("Autofill service connected");
 
     if (fill_response_received_cb_h) {
         free(fill_response_received_cb_h);
@@ -699,7 +699,7 @@ static bool __manager_set_autofill_service_cb(rpc_port_stub_AutofillManagerPort_
         rpc_port_proxy_AutofillSvcPort_invoke_request_terminate(svc_rpc_h);
 
         int ret = rpc_port_proxy_AutofillSvcPort_destroy(svc_rpc_h);
-        LOGD("ret : %d", ret);
+        LOGD("ret : %#x", ret);
     }
 
     svc_rpc_h = NULL;
@@ -731,7 +731,7 @@ bool add_autofill_service_cb(app_info_h app_info, void *user_data)
 
     int ret = app_info_get_app_id(app_info, &app_id);
     if (ret != APP_MANAGER_ERROR_NONE) {
-        LOGW("app_info_get_app_id failed (%d)", ret);
+        LOGW("app_info_get_app_id failed (%#x)", ret);
         return true;
     }
 
@@ -754,14 +754,14 @@ static bool __manager_get_autofill_service_list_cb(rpc_port_stub_AutofillManager
     // Get the Autofill service list
     ret = app_info_metadata_filter_create(&handle);
     if (ret != APP_MANAGER_ERROR_NONE) {
-        LOGW("app_info_metadata_filter_create failed (%d)", ret);
+        LOGW("app_info_metadata_filter_create failed (%#x)", ret);
         app_info_metadata_filter_destroy(handle);
         return false;
     }
 
     ret = app_info_metadata_filter_add(handle, "autofill-service", "true");
     if (ret != APP_MANAGER_ERROR_NONE) {
-        LOGW("app_info_metadata_filter_add failed (%d)", ret);
+        LOGW("app_info_metadata_filter_add failed (%#x)", ret);
         app_info_metadata_filter_destroy(handle);
         return false;
     }
@@ -771,7 +771,7 @@ static bool __manager_get_autofill_service_list_cb(rpc_port_stub_AutofillManager
 
     ret = app_info_metadata_filter_foreach(handle, add_autofill_service_cb, app_id_list_h);
     if (ret != APP_MANAGER_ERROR_NONE) {
-        LOGW("app_info_metadata_filter_foreach failed (%d)", ret);
+        LOGW("app_info_metadata_filter_foreach failed (%#x)", ret);
     }
 
     *service_info_list = app_id_list_h;
@@ -800,7 +800,7 @@ static int connect_service()
     char *active_autofill_service_id = NULL;
     bool sys_config = false;
     autofill_config_get_autofill_service_app_id(&active_autofill_service_id, &sys_config);
-    LOGD("autofill service : '%s'", active_autofill_service_id);
+    LOGD("active autofill service app id: '%s'", active_autofill_service_id);
 
     if (!active_autofill_service_id) {
         active_autofill_service_id = strdup(AUTOFILL_SERVICE_APP_ID);
@@ -823,14 +823,14 @@ static int connect_service()
         }
 
         if (ret != RPC_PORT_ERROR_NONE) {
-            LOGW("Failed to create rpc port. err = %d", ret);
+            LOGW("Failed to create rpc port. err = %#x", ret);
             return false;
         }
     }
 
     ret = rpc_port_proxy_AutofillSvcPort_connect(svc_rpc_h);
     if (ret != RPC_PORT_ERROR_NONE) {
-        LOGW("Failed to connect. err = %d", ret);
+        LOGW("Failed to connect. err = %#x", ret);
         return false;
     }