Add GCC format checking attributes to minidriver logging function

Commit "Add GCC format checking attributes to log functions" added format
and parameter checking to OpenSC log functions.
Minidriver, however, logs most of its output via a dedicated log function,
so this function needs such attributes, too.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
This commit is contained in:
Maciej S. Szmigiero 2016-09-30 23:05:17 +02:00 committed by Frank Morgner
parent da6815d542
commit 1a073d5683

View File

@ -247,6 +247,11 @@ static DWORD md_fs_init(PCARD_DATA pCardData);
#define snprintf _snprintf
#endif
#if defined(__GNUC__)
static void logprintf(PCARD_DATA pCardData, int level, const char* format, ...)
__attribute__ ((format (SC_PRINTF_FORMAT, 3, 4)));
#endif
static void logprintf(PCARD_DATA pCardData, int level, _Printf_format_string_ const char* format, ...)
{
va_list arg;