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

@@ -74,6 +74,11 @@ void logging(int level, const char *format, ...)
return;
}
if (strncmp(LOG_BLANK_LINE, format, LOG_BLANK_LINE_CMP_LEN)==0) {
printf("\n");
return;
}
va_start(ap, format);
ret = vsnprintf(message, 1024, format, ap);
va_end(ap);