From: Deokhyun Kim Date: Mon, 11 Dec 2017 00:36:02 +0000 (+0900) Subject: Fix return value error of bt_socket_create_rfcomm_ex() X-Git-Tag: submit/tizen_4.0/20180108.000053~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8ca506d4efa77fe5199899cc982f246c972407b;p=platform%2Fcore%2Fapi%2Fbluetooth.git Fix return value error of bt_socket_create_rfcomm_ex() Change-Id: I01019394088299dd329ba5880be8b58aa3afca05 Signer-off-by: Deokhyun Kim --- diff --git a/src/bluetooth-socket.c b/src/bluetooth-socket.c index c141dc3..9ead77d 100644 --- a/src/bluetooth-socket.c +++ b/src/bluetooth-socket.c @@ -143,7 +143,7 @@ int bt_socket_create_rfcomm_ex(const char *uuid, const char *bus_name, const cha BT_CHECK_INPUT_PARAMETER(bus_name); BT_CHECK_INPUT_PARAMETER(object_path); - error_code = bluetooth_rfcomm_create_socket_ex(uuid, bus_name, object_path); + error_code = _bt_get_error_code(bluetooth_rfcomm_create_socket_ex(uuid, bus_name, object_path)); if (error_code != BT_ERROR_NONE) { BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code);