size_t i = 0;
ssize_t ret;
- BT_ASSERT(buf);
+ BT_ASSERT_DBG(buf);
/* Never return an overflow value. */
- BT_ASSERT(count <= SSIZE_MAX);
+ BT_ASSERT_DBG(count <= SSIZE_MAX);
do {
ret = read(fd, buf + i, count - i);
}
}
i += ret;
- BT_ASSERT(i <= count);
+ BT_ASSERT_DBG(i <= count);
} while (count - i > 0 && ret > 0);
end:
GString *str = g_string_new(NULL);
uint64_t i;
- BT_ASSERT(path);
+ BT_ASSERT_DBG(path);
if (!str) {
goto end;
uint64_t value_period_cycles;
int64_t ns_to_add;
- BT_ASSERT(raw_value);
+ BT_ASSERT_DBG(raw_value);
/* Compute offset part of requested value, in nanoseconds */
if (!bt_safe_to_mul_int64(cc_offset_seconds, NS_PER_S_I)) {