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
/
health
/
health.c
diff --git
a/src/common/health/health.c
b/src/common/health/health.c
index 62e211419fe463c28ae5c64cb842f1038295bfc7..8f147c678a95753d26f22584a5831af2c60ba2cb 100644
(file)
--- a/
src/common/health/health.c
+++ b/
src/common/health/health.c
@@
-7,7
+7,6
@@
*/
#define _LGPL_SOURCE
*/
#define _LGPL_SOURCE
-#include <assert.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
@@
-156,7
+155,7
@@
static int validate_state(struct health_app *ha, struct health_state *state)
unsigned long current, last;
struct timespec current_time;
unsigned long current, last;
struct timespec current_time;
-
assert
(state);
+
LTTNG_ASSERT
(state);
last = state->last;
current = uatomic_read(&state->current);
last = state->last;
current = uatomic_read(&state->current);
@@
-224,7
+223,7
@@
int health_check_state(struct health_app *ha, int type)
int retval = 1;
struct health_state *state;
int retval = 1;
struct health_state *state;
-
assert
(type < ha->nr_types);
+
LTTNG_ASSERT
(type < ha->nr_types);
state_lock(ha);
state_lock(ha);
@@
-260,7
+259,7
@@
end:
*/
void health_register(struct health_app *ha, int type)
{
*/
void health_register(struct health_app *ha, int type)
{
-
assert
(type < ha->nr_types);
+
LTTNG_ASSERT
(type < ha->nr_types);
/* Init TLS state. */
uatomic_set(&URCU_TLS(health_state).last, 0);
/* Init TLS state. */
uatomic_set(&URCU_TLS(health_state).last, 0);
This page took
0.023767 seconds
and
4
git commands to generate.