pkg: openthread: mark otPlatLog() as printf style function
This commit is contained in:
parent
0a5acd91cf
commit
d6cdf4d06f
@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
/* adapted from OpenThread posix example:
|
/* adapted from OpenThread posix example:
|
||||||
* See: https://github.com/openthread/openthread/blob/master/examples/platforms/posix/logging.c */
|
* 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, ...)
|
void otPlatLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user