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
/
log-level-rule.c
diff --git
a/src/common/log-level-rule.c
b/src/common/log-level-rule.c
index 5c0da4d1a471118de60d968f7dc2d0771398cffc..a88a31687403abe8f3704042309e61fbd0bd77aa 100644
(file)
--- a/
src/common/log-level-rule.c
+++ b/
src/common/log-level-rule.c
@@
-5,7
+5,6
@@
*
*/
*
*/
-#include <assert.h>
#include <common/dynamic-buffer.h>
#include <common/error.h>
#include <common/hashtable/hashtable.h>
#include <common/dynamic-buffer.h>
#include <common/error.h>
#include <common/hashtable/hashtable.h>
@@
-230,7
+229,7
@@
struct lttng_log_level_rule *lttng_log_level_rule_copy(
{
struct lttng_log_level_rule *copy = NULL;
{
struct lttng_log_level_rule *copy = NULL;
-
assert
(source);
+
LTTNG_ASSERT
(source);
copy = zmalloc(sizeof(struct lttng_log_level_rule));
if (!copy) {
copy = zmalloc(sizeof(struct lttng_log_level_rule));
if (!copy) {
@@
-249,7
+248,7
@@
void lttng_log_level_rule_to_loglevel(
enum lttng_loglevel_type *loglevel_type,
int *loglevel_value)
{
enum lttng_loglevel_type *loglevel_type,
int *loglevel_value)
{
-
assert
(log_level_rule);
+
LTTNG_ASSERT
(log_level_rule);
switch (log_level_rule->type) {
case LTTNG_LOG_LEVEL_RULE_TYPE_EXACTLY:
switch (log_level_rule->type) {
case LTTNG_LOG_LEVEL_RULE_TYPE_EXACTLY:
@@
-274,7
+273,7
@@
unsigned long lttng_log_level_rule_hash(
int log_level_value;
enum lttng_log_level_rule_type type;
int log_level_value;
enum lttng_log_level_rule_type type;
-
assert
(log_level_rule);
+
LTTNG_ASSERT
(log_level_rule);
type = lttng_log_level_rule_get_type(log_level_rule);
type = lttng_log_level_rule_get_type(log_level_rule);
@@
-292,7
+291,7
@@
unsigned long lttng_log_level_rule_hash(
break;
}
break;
}
-
assert
(llr_status == LTTNG_LOG_LEVEL_RULE_STATUS_OK);
+
LTTNG_ASSERT
(llr_status == LTTNG_LOG_LEVEL_RULE_STATUS_OK);
hash = hash_key_ulong((void *) (unsigned long) type, lttng_ht_seed);
hash = hash_key_ulong((void *) (unsigned long) type, lttng_ht_seed);
@@
-313,8
+312,8
@@
enum lttng_error_code lttng_log_level_rule_mi_serialize(
const char *element_str = NULL;
int level;
const char *element_str = NULL;
int level;
-
assert
(rule);
-
assert
(writer);
+
LTTNG_ASSERT
(rule);
+
LTTNG_ASSERT
(writer);
switch (lttng_log_level_rule_get_type(rule)) {
case LTTNG_LOG_LEVEL_RULE_TYPE_EXACTLY:
switch (lttng_log_level_rule_get_type(rule)) {
case LTTNG_LOG_LEVEL_RULE_TYPE_EXACTLY:
@@
-331,7
+330,7
@@
enum lttng_error_code lttng_log_level_rule_mi_serialize(
break;
}
break;
}
-
assert
(status == LTTNG_LOG_LEVEL_RULE_STATUS_OK);
+
LTTNG_ASSERT
(status == LTTNG_LOG_LEVEL_RULE_STATUS_OK);
/* Open log level rule element. */
ret = mi_lttng_writer_open_element(
/* Open log level rule element. */
ret = mi_lttng_writer_open_element(
This page took
0.025237 seconds
and
4
git commands to generate.