diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2023-01-26 14:21:02 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2023-01-27 12:01:17 +0100 |
| commit | 0f9de11a11644b77cc60d6ff6ac4519d2e5c29e1 (patch) | |
| tree | c8e418c2049ef79101e62821f2b49506654eb4bd /pceplib | |
| parent | e784f789fb7af43027eeee55a3f16026ab36b9e4 (diff) | |
*: apply proper format string attributes
So that we get warnings about broken format strings.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pceplib')
| -rw-r--r-- | pceplib/pcep_utils_logging.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pceplib/pcep_utils_logging.c b/pceplib/pcep_utils_logging.c index c9b2588b4b..7afe55f125 100644 --- a/pceplib/pcep_utils_logging.c +++ b/pceplib/pcep_utils_logging.c @@ -27,10 +27,12 @@ #include <stdarg.h> #include <stdio.h> +#include "compiler.h" #include "pcep_utils_logging.h" /* Forward declaration */ -int pcep_stdout_logger(int priority, const char *format, va_list args); +int pcep_stdout_logger(int priority, const char *format, va_list args) + PRINTFRR(2, 0); static pcep_logger_func logger_func = pcep_stdout_logger; static int logging_level_ = LOG_INFO; |
