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
/
channel.c
diff --git
a/src/lib/lttng-ctl/channel.c
b/src/lib/lttng-ctl/channel.c
index 868e8aa68b7eb85b1dd6f206d1fb38511cfd05e0..17f9537ba5645690fa2562e8bf5d28f9c9a9d643 100644
(file)
--- a/
src/lib/lttng-ctl/channel.c
+++ b/
src/lib/lttng-ctl/channel.c
@@
-17,7
+17,6
@@
#include <common/payload.h>
#include <common/payload-view.h>
#include <common/unix.h>
#include <common/payload.h>
#include <common/payload-view.h>
#include <common/unix.h>
-#include <assert.h>
#include "lttng-ctl-helper.h"
#include <common/compat/poll.h>
#include "lttng-ctl-helper.h"
#include <common/compat/poll.h>
@@
-92,7
+91,7
@@
enum lttng_notification_channel_message_type get_current_message_type(
{
struct lttng_notification_channel_message *msg;
{
struct lttng_notification_channel_message *msg;
-
assert
(channel->reception_payload.buffer.size >= sizeof(*msg));
+
LTTNG_ASSERT
(channel->reception_payload.buffer.size >= sizeof(*msg));
msg = (struct lttng_notification_channel_message *)
channel->reception_payload.buffer.data;
msg = (struct lttng_notification_channel_message *)
channel->reception_payload.buffer.data;
@@
-230,7
+229,7
@@
lttng_notification_channel_get_next_notification(
if (channel->pending_notifications.count) {
struct pending_notification *pending_notification;
if (channel->pending_notifications.count) {
struct pending_notification *pending_notification;
-
assert
(!cds_list_empty(&channel->pending_notifications.list));
+
LTTNG_ASSERT
(!cds_list_empty(&channel->pending_notifications.list));
/* Deliver one of the pending notifications. */
pending_notification = cds_list_first_entry(
/* Deliver one of the pending notifications. */
pending_notification = cds_list_first_entry(
@@
-633,7
+632,7
@@
enum lttng_notification_channel_status send_condition_command(
goto end;
}
goto end;
}
-
assert
(type == LTTNG_NOTIFICATION_CHANNEL_MESSAGE_TYPE_SUBSCRIBE ||
+
LTTNG_ASSERT
(type == LTTNG_NOTIFICATION_CHANNEL_MESSAGE_TYPE_SUBSCRIBE ||
type == LTTNG_NOTIFICATION_CHANNEL_MESSAGE_TYPE_UNSUBSCRIBE);
pthread_mutex_lock(&channel->lock);
type == LTTNG_NOTIFICATION_CHANNEL_MESSAGE_TYPE_UNSUBSCRIBE);
pthread_mutex_lock(&channel->lock);
This page took
0.023791 seconds
and
4
git commands to generate.