X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Ffd-handle.c;h=510e1181bd1193435a06b158e737d54c9051d53f;hb=a0377dfefe40662ba7d68617bce6ff467114136c;hp=ddf70afadea98fa9a1aa4414bcee74a73e4c7c1a;hpb=cc3b9644f017a91d347d7a414387292e3175635e;p=lttng-tools.git diff --git a/src/common/fd-handle.c b/src/common/fd-handle.c index ddf70afad..510e1181b 100644 --- a/src/common/fd-handle.c +++ b/src/common/fd-handle.c @@ -21,7 +21,7 @@ static void fd_handle_release(struct urcu_ref *ref) int ret; struct fd_handle *handle = container_of(ref, struct fd_handle, ref); - assert(handle->fd >= 0); + LTTNG_ASSERT(handle->fd >= 0); ret = close(handle->fd); if (ret == -1) { PERROR("Failed to close file descriptor of fd_handle upon release: fd = %d", @@ -78,7 +78,7 @@ void fd_handle_put(struct fd_handle *handle) LTTNG_HIDDEN int fd_handle_get_fd(struct fd_handle *handle) { - assert(handle); + LTTNG_ASSERT(handle); return handle->fd; }