X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Flib-logging.c;h=a22e000f0ee3f56ca0b6140e1446768c5cc29600;hb=HEAD;hp=82558067bfb2e5b78b9ed9272a6506edcd76b434;hpb=5155b005cfadade509649b8f9a3bf2c055c6edfd;p=babeltrace.git diff --git a/src/lib/lib-logging.c b/src/lib/lib-logging.c index 82558067..6d98a0ce 100644 --- a/src/lib/lib-logging.c +++ b/src/lib/lib-logging.c @@ -21,7 +21,6 @@ #include #include "logging.h" -#include "assert-cond.h" #include "value.h" #include "integer-range-set.h" #include "object-pool.h" @@ -498,8 +497,8 @@ static inline void format_trace(char **buf_ch, bool extended, { char tmp_prefix[TMP_PREFIX_LEN]; - if (trace->name.value) { - BUF_APPEND(", %sname=\"%s\"", PRFIELD(trace->name.value)); + if (trace->name) { + BUF_APPEND(", %sname=\"%s\"", PRFIELD(trace->name)); } if (!extended) { @@ -535,9 +534,9 @@ static inline void format_stream_class(char **buf_ch, bool extended, BUF_APPEND(", %sid=%" PRIu64, PRFIELD(stream_class->id)); - if (stream_class->name.value) { + if (stream_class->name) { BUF_APPEND(", %sname=\"%s\"", - PRFIELD(stream_class->name.value)); + PRFIELD(stream_class->name)); } if (!extended) { @@ -594,9 +593,9 @@ static inline void format_event_class(char **buf_ch, bool extended, BUF_APPEND(", %sid=%" PRIu64, PRFIELD(event_class->id)); - if (event_class->name.value) { + if (event_class->name) { BUF_APPEND(", %sname=\"%s\"", - PRFIELD(event_class->name.value)); + PRFIELD(event_class->name)); } if (!extended) { @@ -611,9 +610,9 @@ static inline void format_event_class(char **buf_ch, bool extended, (int) event_class->log_level.value))); } - if (event_class->emf_uri.value) { + if (event_class->emf_uri) { BUF_APPEND(", %semf-uri=\"%s\"", - PRFIELD(event_class->emf_uri.value)); + PRFIELD(event_class->emf_uri)); } BUF_APPEND(", %sspecific-context-fc-addr=%p, %spayload-fc-addr=%p", @@ -650,8 +649,8 @@ static inline void format_stream(char **buf_ch, bool extended, BUF_APPEND(", %sid=%" PRIu64, PRFIELD(stream->id)); - if (stream->name.value) { - BUF_APPEND(", %sname=\"%s\"", PRFIELD(stream->name.value)); + if (stream->name) { + BUF_APPEND(", %sname=\"%s\"", PRFIELD(stream->name)); } if (!extended) { @@ -778,8 +777,8 @@ static inline void format_clock_class(char **buf_ch, bool extended, { char tmp_prefix[TMP_PREFIX_LEN]; - if (clock_class->name.value) { - BUF_APPEND(", %sname=\"%s\"", PRFIELD(clock_class->name.value)); + if (clock_class->name) { + BUF_APPEND(", %sname=\"%s\"", PRFIELD(clock_class->name)); } BUF_APPEND(", %sfreq=%" PRIu64, PRFIELD(clock_class->frequency)); @@ -788,9 +787,9 @@ static inline void format_clock_class(char **buf_ch, bool extended, return; } - if (clock_class->description.value) { + if (clock_class->description) { BUF_APPEND(", %spartial-descr=\"%.32s\"", - PRFIELD(clock_class->description.value)); + PRFIELD(clock_class->description)); } if (clock_class->uuid.value) {