BTSOCK_RFCOMM, NULL, channel, &sock_fd, 0);
break;
default:
- BT_ERR("Socket type: %d not supported");
+ BT_ERR("Socket type: %d not supported", sock_type);
}
if (sock_fd < 0) {
BT_ERR("Bluetooth socket connect failed");
+ g_free(p_oal_client_info);
return sock_fd;
}
svc_name, p_uuid->uuid, channel, &sock_fd, 0);
break;
default:
- BT_ERR("Socket type: %d not supported");
+ BT_ERR("Socket type: %d not supported", sock_type);
}
if (sock_fd < 0 || ret != BT_STATUS_SUCCESS) {