Add format checking to RawSerial::printf

pull/8601/head
Kevin Bracey 2018-10-31 15:36:32 +02:00
parent fc32d954ac
commit 3da44f67ce
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@
#if defined (DEVICE_SERIAL) || defined(DOXYGEN_ONLY)
#include "mbed_toolchain.h"
#include "drivers/SerialBase.h"
#include "hal/serial_api.h"
#include "platform/NonCopyable.h"
@ -86,7 +87,7 @@ public:
*/
int puts(const char *str);
int printf(const char *format, ...);
int printf(const char *format, ...) MBED_PRINTF_METHOD(1, 2);
#if !(DOXYGEN_ONLY)
protected: