aboutsummaryrefslogtreecommitdiff
path: root/cftoken.l
diff options
context:
space:
mode:
Diffstat (limited to 'cftoken.l')
-rw-r--r--cftoken.l12
1 files changed, 6 insertions, 6 deletions
diff --git a/cftoken.l b/cftoken.l
index ece7fbb..ad4128d 100644
--- a/cftoken.l
+++ b/cftoken.l
@@ -340,10 +340,10 @@ cfdebug_print(w, t, l)
int l;
{
if (w) {
- dprintf(LOG_DEBUG, FNAME,
+ debug_printf(LOG_DEBUG, FNAME,
"<%d>%s [%s] (%d)", yy_start, w, t, l);
} else {
- dprintf(LOG_DEBUG, FNAME,
+ debug_printf(LOG_DEBUG, FNAME,
"<%d>[%s] (%d)", yy_start, t, l);
}
}
@@ -359,7 +359,7 @@ yyerror0(int level, char *s, va_list ap)
if (bp < ep)
bp += vsnprintf(bp, ep - bp, s, ap);
- dprintf(level, FNAME, ebuf);
+ debug_printf(level, FNAME, ebuf);
}
void
@@ -397,7 +397,7 @@ cfswitch_buffer(incl)
FILE *fp;
if (incstackp >= MAX_INCLUDE_DEPTH) {
- dprintf(LOG_ERR, FNAME, "cfparse: includes nested too deeply");
+ debug_printf(LOG_ERR, FNAME, "cfparse: includes nested too deeply");
return (-1);
}
incstack[incstackp].path = configfilename;
@@ -406,7 +406,7 @@ cfswitch_buffer(incl)
fp = fopen(path, "r");
if (fp == NULL) {
- dprintf(LOG_ERR, FNAME, "cfparse: fopen(%s): %s",
+ debug_printf(LOG_ERR, FNAME, "cfparse: fopen(%s): %s",
path, strerror(errno));
if (errno == ENOENT)
return (0);
@@ -428,7 +428,7 @@ cfparse(conf)
{
configfilename = conf;
if ((yyin = fopen(configfilename, "r")) == NULL) {
- dprintf(LOG_ERR, FNAME, "cfparse: fopen(%s): %s",
+ debug_printf(LOG_ERR, FNAME, "cfparse: fopen(%s): %s",
configfilename, strerror(errno));
if (errno == ENOENT)
return (0);