Clixon Add 'when' debugging

This commit is contained in:
Philip Prindeville 2023-12-29 09:41:06 -07:00 committed by Olof Hagsand
parent 1e343c3dcd
commit 2a90faf012

View file

@ -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");