BT_LOGV("Prefix does not match: trying the next one: "
"path=\"%s\", path-prefix=\"%s\", scope=%s",
pathstr, absolute_path_prefixes[scope],
- bt_common_scope_string(scope));
+ ctf_scope_string(scope));
continue;
}
ret = scope;
BT_LOGV("Found root scope from absolute path: "
"path=\"%s\", scope=%s", pathstr,
- bt_common_scope_string(scope));
+ ctf_scope_string(scope));
goto end;
}
if (ctx->tc->is_translated) {
BT_LOGE("Trace class is already translated: "
"root-scope=%s",
- bt_common_scope_string(field_path->root));
+ ctf_scope_string(field_path->root));
ret = -1;
goto end;
}
if (!ctx->sc) {
BT_LOGE("No current stream class: "
"root-scope=%s",
- bt_common_scope_string(field_path->root));
+ ctf_scope_string(field_path->root));
ret = -1;
goto end;
}
if (ctx->sc->is_translated) {
BT_LOGE("Stream class is already translated: "
"root-scope=%s",
- bt_common_scope_string(field_path->root));
+ ctf_scope_string(field_path->root));
ret = -1;
goto end;
}
if (!ctx->ec) {
BT_LOGE("No current event class: "
"root-scope=%s",
- bt_common_scope_string(field_path->root));
+ ctf_scope_string(field_path->root));
ret = -1;
goto end;
}
if (ctx->ec->is_translated) {
BT_LOGE("Event class is already translated: "
"root-scope=%s",
- bt_common_scope_string(field_path->root));
+ ctf_scope_string(field_path->root));
ret = -1;
goto end;
}
/* Error: root class is not available */
BT_LOGE("Root field class is not available: "
"root-scope=%s",
- bt_common_scope_string(field_path->root));
+ ctf_scope_string(field_path->root));
ret = -1;
goto end;
}
/* Relative path: start with current root scope */
field_path->root = ctx->root_scope;
BT_LOGV("Detected relative path: starting with current root scope: "
- "scope=%s", bt_common_scope_string(field_path->root));
+ "scope=%s", ctf_scope_string(field_path->root));
ret = relative_ptokens_to_field_path(ptokens, field_path, ctx);
if (ret) {
BT_LOGE("Cannot get relative field path of path string: "
"path=\"%s\", start-scope=%s, end-scope=%s",
- pathstr, bt_common_scope_string(ctx->root_scope),
- bt_common_scope_string(field_path->root));
+ pathstr, ctf_scope_string(ctx->root_scope),
+ ctf_scope_string(field_path->root));
goto end;
}
} else {
/* Absolute path: use found root scope */
field_path->root = root_scope;
BT_LOGV("Detected absolute path: using root scope: "
- "scope=%s", bt_common_scope_string(field_path->root));
+ "scope=%s", ctf_scope_string(field_path->root));
ret = absolute_ptokens_to_field_path(ptokens, field_path, ctx);
if (ret) {
BT_LOGE("Cannot get absolute field path of path string: "
"path=\"%s\", root-scope=%s",
- pathstr, bt_common_scope_string(root_scope));
+ pathstr, ctf_scope_string(root_scope));
goto end;
}
}
if (!fc) {
/* Error: root class is not available */
BT_LOGE("Root field class is not available: root-scope=%s",
- bt_common_scope_string(field_path->root));
+ ctf_scope_string(field_path->root));
goto end;
}
if (target_field_path->root > ctx_field_path.root) {
BT_LOGE("Target field class is located after source field class: "
"target-root=%s, source-root=%s",
- bt_common_scope_string(target_field_path->root),
- bt_common_scope_string(ctx_field_path.root));
+ ctf_scope_string(target_field_path->root),
+ ctf_scope_string(ctx_field_path.root));
ret = -1;
goto end;
}