Dlog Issue Fixed 82/196682/1 accepted/tizen/unified/20190117.151808 submit/tizen/20190116.045852 submit/tizen/20190116.122123 submit/tizen/20190204.100522
authorkamaljeet <kamal.jc@samsung.com>
Thu, 3 Jan 2019 11:38:36 +0000 (17:08 +0530)
committerkamaljeet <kamal.jc@samsung.com>
Thu, 3 Jan 2019 11:38:36 +0000 (17:08 +0530)
Change-Id: I060db803c09b555a9b5c16c7391505c5199c72de
Signed-off-by: kamaljeet <kamal.jc@samsung.com>
src/oauth2_manager.c

index 53c71aa5c75a196fd9d7453c646149ed096b3dd2..b5ca2b5c37b384319f145c6eca68541e6f52fb0d 100755 (executable)
@@ -800,7 +800,7 @@ _request_access_token_by_code(oauth2_manager_s *mgr_handle, const char *code)
                __parse_acc_token_response(data, &(mgr_handle->response));
                __send_response_to_caller(mgr_handle);
        } else {
-               OAUTH2_LOG_E("curl error=[%d]", http_code);
+               OAUTH2_LOG_E("curl error=[%ld]", http_code);
                __convert_tizen_error_to_oauth_error(http_code, "Network error",
                        &(mgr_handle->response));
                __send_response_to_caller(mgr_handle);
@@ -853,7 +853,7 @@ __request_access_token_for_client_cred(oauth2_manager_s *mgr_handle)
                __parse_acc_token_response(data, &(mgr_handle->response));
                __send_response_to_caller(mgr_handle);
        } else {
-               OAUTH2_LOG_E("curl error=[%d]", http_code);
+               OAUTH2_LOG_E("curl error=[%ld]", http_code);
                __convert_tizen_error_to_oauth_error(http_code,
                        "Network error", &(mgr_handle->response));
                __send_response_to_caller(mgr_handle);
@@ -912,7 +912,7 @@ _request_access_token_for_grant_type_pwd(oauth2_manager_s *mgr_handle)
                __parse_acc_token_response(data, &(mgr_handle->response));
                __send_response_to_caller(mgr_handle);
        } else {
-               OAUTH2_LOG_E("curl error=[%d]", http_code);
+               OAUTH2_LOG_E("curl error=[%ld]", http_code);
                __convert_tizen_error_to_oauth_error(http_code, "Network error",
                        &(mgr_handle->response));
                __send_response_to_caller(mgr_handle);
@@ -1592,7 +1592,7 @@ _request_refresh_token(oauth2_manager_s *mgr_impl)
                __send_response_to_caller(mgr_impl);
        } else {
                /* TODO __convert_tizen_error_to_oauth_error */
-               OAUTH2_LOG_E("curl error=[%d]", http_code);
+               OAUTH2_LOG_E("curl error=[%ld]", http_code);
                __convert_tizen_error_to_oauth_error(http_code, "Network error",
                        &(mgr_impl->response));
                __send_response_to_caller(mgr_impl);