Skip to content

Commit

Permalink
Add format attributes to m_printf functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Sep 7, 2022
1 parent 5b17b39 commit 86154c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sming/System/include/m_printf.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ nputs_callback_t m_setPuts(nputs_callback_t callback);
extern "C" {
#endif

int m_vsnprintf(char* buf, size_t maxLen, const char* fmt, va_list args);
int m_snprintf(char* buf, int length, const char* fmt, ...);
int m_printf(char const*, ...);
int m_vprintf(const char* format, va_list arg);
int m_vsnprintf(char* buf, size_t maxLen, const char* fmt, va_list args) __attribute__((format(printf, 3, 0)));
int m_snprintf(char* buf, int length, const char* fmt, ...) __attribute__((format(printf, 3, 4)));
int m_printf(char const*, ...) __attribute__((format(printf, 1, 2)));
int m_vprintf(const char* format, va_list arg) __attribute__((format(printf, 1, 0)));

/** @brief output a single character
* @param c
Expand Down

0 comments on commit 86154c3

Please sign in to comment.