Added printf format checking to logging function.

This also required changing the logging of "" at the
start of each test to appeal the otherwise-friendly
compiler.
This commit is contained in:
Lee Duncan
2013-02-13 12:37:55 -08:00
committed by Ronnie Sahlberg
parent a1590cf30c
commit 990af4a427
86 changed files with 98 additions and 85 deletions

View File

@@ -33,7 +33,14 @@ extern int loglevel;
#define LOG_SILENT 0
#define LOG_NORMAL 1
#define LOG_VERBOSE 2
void logging(int level, const char *format, ...);
void logging(int level, const char *format, ...) _R_(2,3);
/*
* define special flags for logging a blank line, so compiler
* does not commplain when logging a ""
*/
#define LOG_BLANK_LINE " "
#define LOG_BLANK_LINE_CMP_LEN 2
#define CHECK_FOR_DATALOSS \
do { \