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:
committed by
Ronnie Sahlberg
parent
a1590cf30c
commit
990af4a427
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user