Discriminate YANG debugging

This commit is contained in:
Philip Prindeville 2024-01-04 11:25:14 -07:00 committed by Olof Hagsand
parent 20b233e96f
commit cb134875f9
8 changed files with 20 additions and 20 deletions

View file

@ -167,7 +167,7 @@
/* typecast macro */
#define _YY ((clixon_yang_yacc *)_yy)
#define _YYERROR(msg) {clixon_debug(CLIXON_DBG_DEFAULT, "YYERROR %s '%s' %d", (msg), clixon_yang_parsetext, _YY->yy_linenum); YYERROR;}
#define _YYERROR(msg) {clixon_debug(CLIXON_DBG_YANG, "YYERROR %s '%s' %d", (msg), clixon_yang_parsetext, _YY->yy_linenum); YYERROR;}
/* add _yy to error parameters */
#define YY_(msgid) msgid
@ -204,8 +204,8 @@
* Disable it to stop any calls to clixon_debug. Having it on by default would mean very large debug outputs.
*/
#if 0
#define _PARSE_DEBUG(s) clixon_debug(1,(s))
#define _PARSE_DEBUG1(s, s1) clixon_debug(1,(s), (s1))
#define _PARSE_DEBUG(s) clixon_debug(CLIXON_DBG_YANG, (s))
#define _PARSE_DEBUG1(s, s1) clixon_debug(CLIXON_DBG_YANG, (s), (s1))
#else
#define _PARSE_DEBUG(s)
#define _PARSE_DEBUG1(s, s1)