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:
parent
da6815d542
commit
1a073d5683
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user