projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: move trace class's name, UUID, and environment props to trace API
[babeltrace.git]
/
src
/
lib
/
lib-logging.c
diff --git
a/src/lib/lib-logging.c
b/src/lib/lib-logging.c
index 66bfe9d31a91f229c48de2a047e7013ddaf45ddf..4c69d62f5b034cf778f0c0fb9bb91a6c6bb51310 100644
(file)
--- a/
src/lib/lib-logging.c
+++ b/
src/lib/lib-logging.c
@@
-451,21
+451,12
@@
static inline void format_field_path(char **buf_ch, bool extended,
static inline void format_trace_class(char **buf_ch, bool extended,
const char *prefix, const struct bt_trace_class *trace_class)
{
static inline void format_trace_class(char **buf_ch, bool extended,
const char *prefix, const struct bt_trace_class *trace_class)
{
- if (trace_class->name.value) {
- BUF_APPEND(", %sname=\"%s\"",
- PRFIELD(trace_class->name.value));
- }
-
if (!extended) {
return;
}
BUF_APPEND(", %sis-frozen=%d", PRFIELD(trace_class->frozen));
if (!extended) {
return;
}
BUF_APPEND(", %sis-frozen=%d", PRFIELD(trace_class->frozen));
- if (trace_class->uuid.value) {
- BUF_APPEND_UUID(trace_class->uuid.value);
- }
-
if (trace_class->stream_classes) {
BUF_APPEND(", %sstream-class-count=%u",
PRFIELD(trace_class->stream_classes->len));
if (trace_class->stream_classes) {
BUF_APPEND(", %sstream-class-count=%u",
PRFIELD(trace_class->stream_classes->len));
@@
-488,6
+479,10
@@
static inline void format_trace(char **buf_ch, bool extended,
return;
}
return;
}
+ if (trace->uuid.value) {
+ BUF_APPEND_UUID(trace->uuid.value);
+ }
+
BUF_APPEND(", %sis-frozen=%d", PRFIELD(trace->frozen));
if (trace->streams) {
BUF_APPEND(", %sis-frozen=%d", PRFIELD(trace->frozen));
if (trace->streams) {
This page took
0.024568 seconds
and
4
git commands to generate.