Tools: fixed printf format errors

This commit is contained in:
Andrew Tridgell 2021-08-04 12:44:31 +10:00
parent cb462cac6e
commit 751b901ed9
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ void led_toggle(unsigned led);
// printf to debug uart (or USB)
extern "C" {
void uprintf(const char *fmt, ...);
void uprintf(const char *fmt, ...) FMT_PRINTF(1,2);
}
// generate a LED sequence forever

View File

@ -243,6 +243,6 @@ namespace AP
extern AP_Periph_FW periph;
extern "C" {
void can_printf(const char *fmt, ...);
void can_printf(const char *fmt, ...) FMT_PRINTF(1,2);
}