mirror of https://github.com/ARMmbed/mbed-os.git
Add format check to debug()
parent
1f56fbe397
commit
51df320614
|
@ -27,11 +27,14 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include "mbed_toolchain.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#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
|
/** Output a debug message
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue