Add format check to debug()

pull/8601/head
Kevin Bracey 2018-09-12 12:01:34 +03:00
parent 1f56fbe397
commit 51df320614
1 changed files with 3 additions and 0 deletions

View File

@ -27,11 +27,14 @@
#include <stdio.h>
#include <stdarg.h>
#endif
#include "mbed_toolchain.h"
#ifdef __cplusplus
extern "C" {
#endif
static inline void debug(const char *format, ...) MBED_PRINTF(1, 2);
static inline void debug_if(int condition, const char *format, ...) MBED_PRINTF(2, 3);
/** Output a debug message
*