Debug: Added PARSE debug flag

This commit is contained in:
Olof hagsand 2024-05-15 13:48:19 +02:00
parent 03a9c03b1c
commit c353c6dcab
21 changed files with 45 additions and 31 deletions

View file

@ -83,7 +83,7 @@ yang_subparse(char *str,
int retval = -1;
clixon_yang_sub_parse_yacc ife = {0,};
clixon_debug(CLIXON_DBG_YANG | CLIXON_DBG_DETAIL, "%s", str);
clixon_debug(CLIXON_DBG_PARSE, "%s", str);
ife.if_parse_string = str;
ife.if_linenum = linenum;
if (enabled)
@ -102,6 +102,7 @@ yang_subparse(char *str,
*enabled = ife.if_enabled;
retval = 0;
done:
clixon_debug(CLIXON_DBG_PARSE, "retval:%d", retval);
clixon_yang_sub_parsel_exit(&ife);
return retval;
}
@ -125,7 +126,7 @@ yang_schema_nodeid_subparse(char *str,
int retval = -1;
clixon_yang_schemanode_yacc ife = {0,};
clixon_debug(CLIXON_DBG_YANG | CLIXON_DBG_DETAIL, "%s", str);
clixon_debug(CLIXON_DBG_PARSE, "%s", str);
ife.if_parse_string = str;
ife.if_linenum = linenum;
ife.if_mainfile = mainfile;
@ -139,6 +140,7 @@ yang_schema_nodeid_subparse(char *str,
}
retval = 0;
done:
clixon_debug(CLIXON_DBG_PARSE, "retval:%d", retval);
clixon_yang_schemanode_parsel_exit(&ife);
return retval;
}