diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2023-01-31 09:01:32 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-31 09:01:32 -0500 |
| commit | ea768492f1499830292eec0a31b968e045d598f1 (patch) | |
| tree | 7c1319f14ca28f5fd7b5ef79bd259b0ec9a1db9e /pceplib/pcep_utils_logging.c | |
| parent | d829de917876060ac3094b8bd651d8b84622cb87 (diff) | |
| parent | c2c6c55e8d677115abefb82567ab6ef9e7a07eb3 (diff) | |
Merge pull request #12695 from opensourcerouting/format-warnings
build: `-Wformat-nonliteral -Wformat-security`
Diffstat (limited to 'pceplib/pcep_utils_logging.c')
| -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; |
