X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fkernel-ctl%2Fkernel-ctl.c;h=34d3356e99967e68271aa00d460d63bf3103331c;hp=5373c703943f7710576337bb9995e8cb4321f28b;hb=a0377dfefe40662ba7d68617bce6ff467114136c;hpb=cc3b9644f017a91d347d7a414387292e3175635e diff --git a/src/common/kernel-ctl/kernel-ctl.c b/src/common/kernel-ctl/kernel-ctl.c index 5373c7039..34d3356e9 100644 --- a/src/common/kernel-ctl/kernel-ctl.c +++ b/src/common/kernel-ctl/kernel-ctl.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include "kernel-ctl.h" @@ -25,7 +24,7 @@ #define LTTNG_IOCTL_CHECK(fildes, request, ...) \ ({ \ int _ioctl_ret = ioctl(fildes, request, ##__VA_ARGS__); \ - assert(_ioctl_ret <= 0); \ + LTTNG_ASSERT(_ioctl_ret <= 0); \ !_ioctl_ret ? 0 : -errno; \ })