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
/
actions
/
notify.c
diff --git
a/src/common/actions/notify.c
b/src/common/actions/notify.c
index 93726468e166004ef10cfb4589358a74ca78c134..c34f3845f7423725f5f0c5a83e5be0f9bb7c3bf3 100644
(file)
--- a/
src/common/actions/notify.c
+++ b/
src/common/actions/notify.c
@@
-5,7
+5,6
@@
*
*/
*
*/
-#include <assert.h>
#include <common/error.h>
#include <common/macros.h>
#include <common/mi-lttng.h>
#include <common/error.h>
#include <common/macros.h>
#include <common/mi-lttng.h>
@@
-20,7
+19,7
@@
static struct lttng_action_notify *action_notify_from_action(
struct lttng_action *action)
{
static struct lttng_action_notify *action_notify_from_action(
struct lttng_action *action)
{
-
assert
(action);
+
LTTNG_ASSERT
(action);
return container_of(action, struct lttng_action_notify, parent);
}
return container_of(action, struct lttng_action_notify, parent);
}
@@
-28,7
+27,7
@@
static struct lttng_action_notify *action_notify_from_action(
static const struct lttng_action_notify *action_notify_from_action_const(
const struct lttng_action *action)
{
static const struct lttng_action_notify *action_notify_from_action_const(
const struct lttng_action *action)
{
-
assert
(action);
+
LTTNG_ASSERT
(action);
return container_of(action, struct lttng_action_notify, parent);
}
return container_of(action, struct lttng_action_notify, parent);
}
@@
-92,13
+91,13
@@
static enum lttng_error_code lttng_action_notify_mi_serialize(
enum lttng_error_code ret_code;
const struct lttng_rate_policy *policy = NULL;
enum lttng_error_code ret_code;
const struct lttng_rate_policy *policy = NULL;
-
assert
(action);
-
assert
(IS_NOTIFY_ACTION(action));
-
assert
(writer);
+
LTTNG_ASSERT
(action);
+
LTTNG_ASSERT
(IS_NOTIFY_ACTION(action));
+
LTTNG_ASSERT
(writer);
status = lttng_action_notify_get_rate_policy(action, &policy);
status = lttng_action_notify_get_rate_policy(action, &policy);
-
assert
(status == LTTNG_ACTION_STATUS_OK);
-
assert
(policy != NULL);
+
LTTNG_ASSERT
(status == LTTNG_ACTION_STATUS_OK);
+
LTTNG_ASSERT
(policy != NULL);
/* Open action notify. */
ret = mi_lttng_writer_open_element(
/* Open action notify. */
ret = mi_lttng_writer_open_element(
This page took
0.024521 seconds
and
4
git commands to generate.