projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt_field_class_*_create(): accept mandatory trace class
[babeltrace.git]
/
plugins
/
text
/
dmesg
/
dmesg.c
diff --git
a/plugins/text/dmesg/dmesg.c
b/plugins/text/dmesg/dmesg.c
index 332322b83e4f410be598444456e114d916bc914b..1ec86744b1ea9ac6b30d8b12cf11d9f6dcdb903a 100644
(file)
--- a/
plugins/text/dmesg/dmesg.c
+++ b/
plugins/text/dmesg/dmesg.c
@@
-79,19
+79,19
@@
struct dmesg_component {
};
static
};
static
-bt_field_class *create_event_payload_fc(
void
)
+bt_field_class *create_event_payload_fc(
bt_trace_class *trace_class
)
{
bt_field_class *root_fc = NULL;
bt_field_class *fc = NULL;
int ret;
{
bt_field_class *root_fc = NULL;
bt_field_class *fc = NULL;
int ret;
- root_fc = bt_field_class_structure_create();
+ root_fc = bt_field_class_structure_create(
trace_class
);
if (!root_fc) {
BT_LOGE_STR("Cannot create an empty structure field class object.");
goto error;
}
if (!root_fc) {
BT_LOGE_STR("Cannot create an empty structure field class object.");
goto error;
}
- fc = bt_field_class_string_create();
+ fc = bt_field_class_string_create(
trace_class
);
if (!fc) {
BT_LOGE_STR("Cannot create a string field class object.");
goto error;
if (!fc) {
BT_LOGE_STR("Cannot create a string field class object.");
goto error;
@@
-165,7
+165,7
@@
int create_meta(struct dmesg_component *dmesg_comp, bool has_ts)
goto error;
}
goto error;
}
- fc = create_event_payload_fc();
+ fc = create_event_payload_fc(
dmesg_comp->trace_class
);
if (!fc) {
BT_LOGE_STR("Cannot create event payload field class.");
goto error;
if (!fc) {
BT_LOGE_STR("Cannot create event payload field class.");
goto error;
This page took
0.023564 seconds
and
4
git commands to generate.