projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lttng: Indicate file path and error reason when open_config fails
[lttng-tools.git]
/
src
/
common
/
conditions
/
session-consumed-size.cpp
diff --git
a/src/common/conditions/session-consumed-size.cpp
b/src/common/conditions/session-consumed-size.cpp
index 6c6fb60c05fbaf482800d40194fc461d3e225fe7..1e9cb4379a428609e5e6de5e72d68350a8e9dc25 100644
(file)
--- a/
src/common/conditions/session-consumed-size.cpp
+++ b/
src/common/conditions/session-consumed-size.cpp
@@
-120,7
+120,7
@@
static bool lttng_condition_session_consumed_size_is_equal(const struct lttng_co
LTTNG_ASSERT(a->session_name);
LTTNG_ASSERT(b->session_name);
LTTNG_ASSERT(a->session_name);
LTTNG_ASSERT(b->session_name);
- if (strcmp(a->session_name, b->session_name)) {
+ if (strcmp(a->session_name, b->session_name)
!= 0
) {
goto end;
}
goto end;
}
@@
-136,7
+136,7
@@
lttng_condition_session_consumed_size_mi_serialize(const struct lttng_condition
int ret;
enum lttng_error_code ret_code;
enum lttng_condition_status status;
int ret;
enum lttng_error_code ret_code;
enum lttng_condition_status status;
- const char *session_name =
NULL
;
+ const char *session_name =
nullptr
;
uint64_t threshold_bytes;
LTTNG_ASSERT(condition);
uint64_t threshold_bytes;
LTTNG_ASSERT(condition);
@@
-192,7
+192,7
@@
struct lttng_condition *lttng_condition_session_consumed_size_create(void)
condition = zmalloc<lttng_condition_session_consumed_size>();
if (!condition) {
condition = zmalloc<lttng_condition_session_consumed_size>();
if (!condition) {
- return
NULL
;
+ return
nullptr
;
}
lttng_condition_init(&condition->parent, LTTNG_CONDITION_TYPE_SESSION_CONSUMED_SIZE);
}
lttng_condition_init(&condition->parent, LTTNG_CONDITION_TYPE_SESSION_CONSUMED_SIZE);
@@
-299,7
+299,7
@@
create_evaluation_from_payload(const struct lttng_payload_view *view)
{
const struct lttng_evaluation_session_consumed_size_comm *comm =
(typeof(comm)) view->buffer.data;
{
const struct lttng_evaluation_session_consumed_size_comm *comm =
(typeof(comm)) view->buffer.data;
- struct lttng_evaluation *evaluation =
NULL
;
+ struct lttng_evaluation *evaluation =
nullptr
;
if (view->buffer.size < sizeof(*comm)) {
goto end;
if (view->buffer.size < sizeof(*comm)) {
goto end;
@@
-315,7
+315,7
@@
lttng_evaluation_session_consumed_size_create_from_payload(struct lttng_payload_
struct lttng_evaluation **_evaluation)
{
ssize_t ret;
struct lttng_evaluation **_evaluation)
{
ssize_t ret;
- struct lttng_evaluation *evaluation =
NULL
;
+ struct lttng_evaluation *evaluation =
nullptr
;
if (!_evaluation) {
ret = -1;
if (!_evaluation) {
ret = -1;
This page took
0.024288 seconds
and
4
git commands to generate.