summaryrefslogtreecommitdiffstats
path: root/bfdd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2023-01-26 14:21:02 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2023-01-27 12:01:17 +0100
commit0f9de11a11644b77cc60d6ff6ac4519d2e5c29e1 (patch)
treec8e418c2049ef79101e62821f2b49506654eb4bd /bfdd
parentMerge pull request #12575 from anlancs/fix/build-vtysh-missing-dir (diff)
downloadfrr-0f9de11a11644b77cc60d6ff6ac4519d2e5c29e1.tar.xz
frr-0f9de11a11644b77cc60d6ff6ac4519d2e5c29e1.zip
*: 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 'bfdd')
-rw-r--r--bfdd/bfd_packet.c1
-rw-r--r--bfdd/ptm_adapter.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/bfdd/bfd_packet.c b/bfdd/bfd_packet.c
index 6397aa574..6980e5186 100644
--- a/bfdd/bfd_packet.c
+++ b/bfdd/bfd_packet.c
@@ -746,6 +746,7 @@ static void bfd_sd_reschedule(struct bfd_vrf_global *bvrf, int sd)
}
}
+PRINTFRR(6, 7)
static void cp_debug(bool mhop, struct sockaddr_any *peer,
struct sockaddr_any *local, ifindex_t ifindex,
vrf_id_t vrfid, const char *fmt, ...)
diff --git a/bfdd/ptm_adapter.c b/bfdd/ptm_adapter.c
index f6259b9c3..8a27fced5 100644
--- a/bfdd/ptm_adapter.c
+++ b/bfdd/ptm_adapter.c
@@ -81,6 +81,7 @@ static void bfdd_client_deregister(struct stream *msg);
/*
* Functions
*/
+PRINTFRR(2, 3)
static void debug_printbpc(const struct bfd_peer_cfg *bpc, const char *fmt, ...)
{
char timers[3][128] = {};