mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
AP_HAL: BetterStream removes printf attribute from _printf_P
This commit is contained in:
parent
88f09d100a
commit
3bca50f422
@ -35,8 +35,8 @@ public:
|
|||||||
virtual void println_P(const prog_char_t *) = 0;
|
virtual void println_P(const prog_char_t *) = 0;
|
||||||
virtual void printf(const char *, ...)
|
virtual void printf(const char *, ...)
|
||||||
__attribute__ ((format(__printf__, 2, 3))) = 0;
|
__attribute__ ((format(__printf__, 2, 3))) = 0;
|
||||||
virtual void _printf_P(const prog_char *, ...)
|
/* No format checking on printf_P: can't currently support that on AVR */
|
||||||
__attribute__ ((format(__printf__, 2, 3))) = 0;
|
virtual void _printf_P(const prog_char *, ...) = 0;
|
||||||
|
|
||||||
#define printf_P(fmt, ...) _printf_P((const prog_char *)fmt, ## __VA_ARGS__)
|
#define printf_P(fmt, ...) _printf_P((const prog_char *)fmt, ## __VA_ARGS__)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user