Skip to content

Commit

Permalink
Clixon Add 'when' debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Prindeville committed Jan 4, 2024
1 parent 49711f3 commit ea0ae46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/clixon_validate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1271,8 +1271,11 @@ xml_yang_validate_all(clixon_handle h,
goto fail;
}
if (yang_config(yt) != 0){
if (yang_check_when_xpath(xt, xml_parent(xt), yt, &hit, &nr, &xpath) < 0)
ret = yang_check_when_xpath(xt, xml_parent(xt), yt, &hit, &nr, &xpath);
clixon_debug(CLIXON_DBG_XPATH, "%s nr:%d xpath:%s return:%d", __FUNCTION__, nr, xpath, ret);
if (ret < 0)
goto done;

if (hit && nr == 0){
if ((cb = cbuf_new()) == NULL){
clixon_err(OE_UNIX, errno, "cbuf_new");
Expand Down

0 comments on commit ea0ae46

Please sign in to comment.