Fixes log macros on windows

Wrong size argument was used for _snprintf.