BT_HIDDEN
void bt_uuid_to_str(const bt_uuid_t uuid_in, char *str_out)
{
- BT_ASSERT(uuid_in);
- BT_ASSERT(str_out);
+ BT_ASSERT_DBG(uuid_in);
+ BT_ASSERT_DBG(str_out);
sprintf(str_out, BT_UUID_FMT, BT_UUID_FMT_VALUES(uuid_in));
}
int ret = 0;
bt_uuid_t uuid_scan;
- BT_ASSERT(uuid_out);
- BT_ASSERT(str_in);
+ BT_ASSERT_DBG(uuid_out);
+ BT_ASSERT_DBG(str_in);
if (strnlen(str_in, BT_UUID_STR_LEN + 1) != BT_UUID_STR_LEN) {
ret = -1;
BT_HIDDEN
int bt_uuid_compare(const bt_uuid_t uuid_a, const bt_uuid_t uuid_b)
{
- int ret = 0;
-
- if (memcmp(uuid_a, uuid_b, BT_UUID_LEN) != 0) {
- ret = -1;
- }
-
- return ret;
+ return memcmp(uuid_a, uuid_b, BT_UUID_LEN);
}
BT_HIDDEN