From 067a6547bc49288f11989595ff0a035fb9735128 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 4 Aug 2021 12:44:31 +1000 Subject: [PATCH] AP_HAL: fixed printf format errors --- libraries/AP_HAL/Util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL/Util.h b/libraries/AP_HAL/Util.h index 73e3ed55f9..f50cc2a1d5 100644 --- a/libraries/AP_HAL/Util.h +++ b/libraries/AP_HAL/Util.h @@ -8,7 +8,7 @@ class ExpandingString; class AP_HAL::Util { public: int snprintf(char* str, size_t size, - const char *format, ...); + const char *format, ...) FMT_PRINTF(4, 5); int vsnprintf(char* str, size_t size, const char *format, va_list ap);