AP_HAL: use common macro for printf formatting

This commit is contained in:
Lucas De Marchi 2015-10-22 15:00:28 -02:00 committed by Andrew Tridgell
parent dc95145de2
commit 2322b8014d
1 changed files with 4 additions and 4 deletions

View File

@ -4,6 +4,8 @@
#include <stdint.h>
#include <AP_Common/AP_Common.h>
#include "AP_HAL_Namespace.h"
#include "utility/BetterStream.h"
@ -51,10 +53,8 @@ public:
*/
void print_P(const prog_char_t *s);
void println_P(const prog_char_t *s);
void printf(const char *s, ...)
__attribute__ ((format(__printf__, 2, 3)));
void _printf_P(const prog_char *s, ...)
__attribute__ ((format(__printf__, 2, 3)));
void printf(const char *s, ...) FORMAT(2, 3);
void _printf_P(const prog_char *s, ...) FORMAT(2, 3);
void vprintf(const char *s, va_list ap);
void vprintf_P(const prog_char *s, va_list ap);