diff --git a/pkg/openthread/contrib/platform_logging.c b/pkg/openthread/contrib/platform_logging.c index a3aed1db7d..a7deade082 100644 --- a/pkg/openthread/contrib/platform_logging.c +++ b/pkg/openthread/contrib/platform_logging.c @@ -28,6 +28,7 @@ /* adapted from OpenThread posix example: * See: https://github.com/openthread/openthread/blob/master/examples/platforms/posix/logging.c */ +__attribute__((__format__ (__printf__, 3, 4))) void otPlatLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, ...) { va_list args;