mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
AP_HAL: use common macro for printf formatting
This commit is contained in:
parent
dc95145de2
commit
2322b8014d
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include <AP_Common/AP_Common.h>
|
||||||
|
|
||||||
#include "AP_HAL_Namespace.h"
|
#include "AP_HAL_Namespace.h"
|
||||||
#include "utility/BetterStream.h"
|
#include "utility/BetterStream.h"
|
||||||
|
|
||||||
@ -51,10 +53,8 @@ public:
|
|||||||
*/
|
*/
|
||||||
void print_P(const prog_char_t *s);
|
void print_P(const prog_char_t *s);
|
||||||
void println_P(const prog_char_t *s);
|
void println_P(const prog_char_t *s);
|
||||||
void printf(const char *s, ...)
|
void printf(const char *s, ...) FORMAT(2, 3);
|
||||||
__attribute__ ((format(__printf__, 2, 3)));
|
void _printf_P(const prog_char *s, ...) FORMAT(2, 3);
|
||||||
void _printf_P(const prog_char *s, ...)
|
|
||||||
__attribute__ ((format(__printf__, 2, 3)));
|
|
||||||
|
|
||||||
void vprintf(const char *s, va_list ap);
|
void vprintf(const char *s, va_list ap);
|
||||||
void vprintf_P(const prog_char *s, va_list ap);
|
void vprintf_P(const prog_char *s, va_list ap);
|
||||||
|
Loading…
Reference in New Issue
Block a user