Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Feb 15, 2025
1 parent f9509e1 commit 97b16c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tree_schema.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ lys_find_backlinks_clb(struct lysc_node *node, void *data, ly_bool *dfs_continue

(void)dfs_continue;

fprintf(stderr, "%s(): node name %s\n", __FUNCTION__, node->name);
fprintf(stderr, "lys_find_backlinks_clb(): node name %s\n", node->name);

/* Not a node type we are interested in */
if (node->nodetype != LYS_LEAF && node->nodetype != LYS_LEAFLIST) {
Expand All @@ -718,7 +718,7 @@ fprintf(stderr, "%s(): node name %s\n", __FUNCTION__, node->name);
} else if (ret != LY_SUCCESS) {
goto cleanup;
}
fprintf(stderr, "\t * found %d lref targets\n", __FUNCTION__, (int)set->count);
fprintf(stderr, "\t * found %d lref targets\n", (int)set->count);

/* If set contains no entries, don't add node */
if (set->count == 0) {
Expand Down Expand Up @@ -776,7 +776,7 @@ lys_find_backlinks(const struct ly_ctx *ctx, const struct lysc_node *match_node,
/* Iterate across all loaded modules */
for (module_idx = 0; (module = ly_ctx_get_module_iter(ctx, &module_idx)) != NULL; ) {
lys_find_backlinks_t data = { match_node, match_ancestors, *set };
fprintf(stderr, "%s(): searching module %s\n", __FUNCTION__, module->name);
fprintf(stderr, "lys_find_backlinks(): searching module %s\n", module->name);
ret = lysc_module_dfs_full(module, lys_find_backlinks_clb, &data);
LY_CHECK_GOTO(ret, cleanup);
}
Expand Down

0 comments on commit 97b16c8

Please sign in to comment.