Commit 1f217e22 authored by Damien Riegel's avatar Damien Riegel

logger: add printf attribute to give more explicit warnings

Issue: #79584
Change-Id: Ib0d225357c6c478f31e4b8c8b1534aadb0eb5a40
parent cd493aaa
......@@ -42,7 +42,11 @@ extern "C" {
/**
* Print something, coloring it depending on the level
*/
void logger(const int level, const char* format, ...);
void logger(const int level, const char* format, ...)
#ifdef __GNUC__
__attribute__((format(printf, 2, 3)))
#endif
;
void vlogger(const int level, const char* format, va_list);
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment