_BT_COMP_LOGE_NODE(node,
"Stream class has a `id` attribute, "
"but trace has no packet header field class.");
+ ret = -EINVAL;
goto error;
}
_BT_COMP_LOGE_NODE(node,
"Stream class has a `id` attribute, "
"but trace's packet header field class has no `stream_id` field.");
+ ret = -EINVAL;
goto error;
}
_BT_COMP_LOGE_NODE(node,
"Stream class has a `id` attribute, "
"but trace's packet header field class's `stream_id` field is not an integer field class.");
+ ret = -EINVAL;
goto error;
}
} else {
if (val != 1) {
_BT_COMP_LOGE_NODE(node,
"Invalid trace's `minor` attribute: expecting 1.");
+ ret = -EINVAL;
goto error;
}
if (val != 8) {
_BT_COMP_LOGE_NODE(node,
"Invalid trace's `minor` attribute: expecting 8.");
+ ret = -EINVAL;
goto error;
}