projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git]
/
src
/
common
/
kernel-ctl
/
kernel-ctl.c
diff --git
a/src/common/kernel-ctl/kernel-ctl.c
b/src/common/kernel-ctl/kernel-ctl.c
index 5373c703943f7710576337bb9995e8cb4321f28b..34d3356e99967e68271aa00d460d63bf3103331c 100644
(file)
--- a/
src/common/kernel-ctl/kernel-ctl.c
+++ b/
src/common/kernel-ctl/kernel-ctl.c
@@
-16,7
+16,6
@@
#include <common/macros.h>
#include <common/compat/errno.h>
#include <stdarg.h>
#include <common/macros.h>
#include <common/compat/errno.h>
#include <stdarg.h>
-#include <assert.h>
#include <common/time.h>
#include "kernel-ctl.h"
#include <common/time.h>
#include "kernel-ctl.h"
@@
-25,7
+24,7
@@
#define LTTNG_IOCTL_CHECK(fildes, request, ...) \
({ \
int _ioctl_ret = ioctl(fildes, request, ##__VA_ARGS__); \
#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; \
})
!_ioctl_ret ? 0 : -errno; \
})
This page took
0.02544 seconds
and
4
git commands to generate.