File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -871,7 +871,7 @@ typedef struct _mbed_error_ctx {
871
871
*
872
872
*/
873
873
874
- MBED_NORETURN void error (const char * format , ...);
874
+ MBED_NORETURN void error (const char * format , ...) MBED_PRINTF ( 1 , 2 ) ;
875
875
876
876
/**
877
877
* Call this Macro to generate a mbed_error_status_t value for a System error
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ MBED_NORETURN void mbed_die(void);
139
139
* @endcode
140
140
*
141
141
*/
142
- void mbed_error_printf (const char * format , ...);
142
+ void mbed_error_printf (const char * format , ...) MBED_PRINTF ( 1 , 2 ) ;
143
143
144
144
/** Print out an error message. Similar to mbed_error_printf
145
145
* but uses a va_list.
@@ -150,7 +150,7 @@ void mbed_error_printf(const char *format, ...);
150
150
* @param arg Variable arguments list
151
151
*
152
152
*/
153
- void mbed_error_vprintf (const char * format , va_list arg );
153
+ void mbed_error_vprintf (const char * format , va_list arg ) MBED_PRINTF ( 1 , 0 ) ;
154
154
155
155
/** Print out an error message. This is typically called when
156
156
* handling a crash.
@@ -169,7 +169,7 @@ void mbed_error_puts(const char *str);
169
169
/** @deprecated Renamed to mbed_error_vprintf to match functionality */
170
170
MBED_DEPRECATED_SINCE ("mbed-os-5.11" ,
171
171
"Renamed to mbed_error_vprintf to match functionality." )
172
- void mbed_error_vfprintf (const char * format , va_list arg );
172
+ void mbed_error_vfprintf (const char * format , va_list arg ) MBED_PRINTF ( 1 , 0 ) ;
173
173
/** @}*/
174
174
175
175
You can’t perform that action at this time.
0 commit comments