From 0f9de11a11644b77cc60d6ff6ac4519d2e5c29e1 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 26 Jan 2023 14:21:02 +0100 Subject: *: apply proper format string attributes So that we get warnings about broken format strings. Signed-off-by: David Lamparter --- pathd/path_pcep_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pathd/path_pcep_lib.c') diff --git a/pathd/path_pcep_lib.c b/pathd/path_pcep_lib.c index 8e3565d72d..6b247b705f 100644 --- a/pathd/path_pcep_lib.c +++ b/pathd/path_pcep_lib.c @@ -38,7 +38,8 @@ DEFINE_MTYPE_STATIC(PATHD, PCEPLIB_MESSAGES, "PCEPlib PCEP Messages"); #define MAX_PATH_NAME_SIZE 255 /* pceplib logging callback */ -static int pceplib_logging_cb(int level, const char *fmt, va_list args); +static int pceplib_logging_cb(int level, const char *fmt, va_list args) + PRINTFRR(2, 0); /* Socket callbacks */ static int pcep_lib_pceplib_socket_read_cb(void *fpt, void **thread, int fd, -- cgit v1.2.3