From d6cdf4d06f2aeed05dcf86a5437254e2403e147b Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Fri, 3 Aug 2018 17:57:21 +0200 Subject: [PATCH] pkg: openthread: mark otPlatLog() as printf style function --- pkg/openthread/contrib/platform_logging.c | 1 + 1 file changed, 1 insertion(+) 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;