From c766c4a9f7a97378ad3e4b42b209b0a3105bd6de Mon Sep 17 00:00:00 2001 From: Alexey Khromov Date: Sat, 11 May 2024 15:15:24 +0300 Subject: [PATCH] Debug info before opening log and debug files - fixes3 --- source/bforce/conf_read.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/bforce/conf_read.c b/source/bforce/conf_read.c index fde314e..e417d76 100644 --- a/source/bforce/conf_read.c +++ b/source/bforce/conf_read.c @@ -159,7 +159,7 @@ int conf_readconf(const char *confname, int inclevel) if( i != (int)bforce_config[i].real_key ) { #ifdef DEBUG - printf(stderr,"BF-DEBUG: invalid config table: found %d instead of %d", + fprintf(stderr,"BF-DEBUG: invalid config table: found %d instead of %d", bforce_config[i].real_key, i); #endif return -1; @@ -328,7 +328,7 @@ int conf_readconf(const char *confname, int inclevel) else { #ifdef DEBUG - fprintf(stderr, ("BF-DEBUG: unknown directive `%s'", p_key); + fprintf(stderr, "BF-DEBUG: unknown directive `%s'", p_key); #endif rc = PROC_RC_IGNORE; } @@ -407,7 +407,7 @@ int conf_readconf(const char *confname, int inclevel) free(ifexpr); #ifdef DEBUG - printf(stderr, "BF-DEBUG: readconfig: exit with maxrc = %d", maxrc); + fprintf(stderr, "BF-DEBUG: readconfig: exit with maxrc = %d", maxrc); #endif /* update subsystems */