Skip to content

Commit 51df320

Browse files
committed
Add format check to debug()
1 parent 1f56fbe commit 51df320

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

platform/mbed_debug.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,14 @@
2727
#include <stdio.h>
2828
#include <stdarg.h>
2929
#endif
30+
#include "mbed_toolchain.h"
3031

3132
#ifdef __cplusplus
3233
extern "C" {
3334
#endif
3435

36+
static inline void debug(const char *format, ...) MBED_PRINTF(1, 2);
37+
static inline void debug_if(int condition, const char *format, ...) MBED_PRINTF(2, 3);
3538

3639
/** Output a debug message
3740
*

0 commit comments

Comments
 (0)