correct va_list usage (#686)

This commit is contained in:
Buke Po
2016-09-26 10:00:50 -07:00
committed by Jonathan Hui
parent 96af368981
commit d20d54a394
4 changed files with 27 additions and 8 deletions
+3 -2
View File
@@ -35,6 +35,7 @@
#ifndef CLI_UART_H_
#define CLI_UART_H_
#include <stdarg.h>
#include <openthread-types.h>
#include <platform/logging.h>
@@ -57,10 +58,10 @@ void otCliUartInit(otInstance *aInstance);
* @param[in] aLogLevel The log level.
* @param[in] aLogRegion The log region.
* @param[in] aFormat A pointer to the format string.
* @param[in] ... Arguments for the format specification.
* @param[in] aAp Arguments pointer for the format specification.
*
*/
void otCliLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, ...);
void otCliLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, va_list aAp);
#endif
#ifdef __cplusplus