assert: check format arguments for correctness
This instructs the compiler to check that arguments to __ASSERT/__ASSERT_NO_MSG are valid for printf. Signed-off-by: Armin Brauns <armin.brauns@embedded-solutions.at>
This commit is contained in:
parent
b01739da6f
commit
d7846de548
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
/* Wrapper around printk to avoid including printk.h in assert.h */
|
||||
void assert_print(const char *fmt, ...);
|
||||
void __printf_like(1, 2) assert_print(const char *fmt, ...);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue