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
/
lib
/
lttng-ctl
/
rotate.c
diff --git
a/src/lib/lttng-ctl/rotate.c
b/src/lib/lttng-ctl/rotate.c
index 17964fb1070784b9b65badf61eca9a94da9e819c..d131944043ec4bf2667999137acb997fc056037b 100644
(file)
--- a/
src/lib/lttng-ctl/rotate.c
+++ b/
src/lib/lttng-ctl/rotate.c
@@
-6,7
+6,6
@@
*/
#define _LGPL_SOURCE
*/
#define _LGPL_SOURCE
-#include <assert.h>
#include <string.h>
#include <lttng/lttng-error.h>
#include <string.h>
#include <lttng/lttng-error.h>
@@
-223,7
+222,7
@@
int lttng_rotate_session(const char *session_name,
ret = lttng_strncpy(lsm.session.name, session_name,
sizeof(lsm.session.name));
/* Source length already validated. */
ret = lttng_strncpy(lsm.session.name, session_name,
sizeof(lsm.session.name));
/* Source length already validated. */
-
assert
(ret == 0);
+
LTTNG_ASSERT
(ret == 0);
ret = lttng_ctl_ask_sessiond(&lsm, (void **) &rotate_return);
if (ret <= 0) {
ret = lttng_ctl_ask_sessiond(&lsm, (void **) &rotate_return);
if (ret <= 0) {
@@
-288,7
+287,7
@@
enum lttng_rotation_status lttng_rotation_update_schedule(
ret = lttng_strncpy(lsm.session.name, session_name,
sizeof(lsm.session.name));
/* Source length already validated. */
ret = lttng_strncpy(lsm.session.name, session_name,
sizeof(lsm.session.name));
/* Source length already validated. */
-
assert
(ret == 0);
+
LTTNG_ASSERT
(ret == 0);
lsm.u.rotation_set_schedule.type = (uint32_t) schedule->type;
switch (schedule->type) {
lsm.u.rotation_set_schedule.type = (uint32_t) schedule->type;
switch (schedule->type) {
This page took
0.023682 seconds
and
4
git commands to generate.