diff options
author | David Lamparter <equinox@diac24.net> | 2020-04-23 20:34:16 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2020-04-27 09:52:41 +0200 |
commit | 189be3996d8735b45147803b075abad818546dec (patch) | |
tree | cf33a9c1a6a407fbce890658c3866cc506fb94d3 | |
parent | lib/zlog: fix printfrr format attribute (diff) | |
download | frr-189be3996d8735b45147803b075abad818546dec.tar.xz frr-189be3996d8735b45147803b075abad818546dec.zip |
bfdd: fix frr-format false warning
Dealing with PRIu64 is unfortunately a bit hacky in the frr-format
plugin, as in, it works correctly with snprintfrr, but breaks on plain
snprintf. There's no good solution unfortunately :/.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rw-r--r-- | bfdd/ptm_adapter.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bfdd/ptm_adapter.c b/bfdd/ptm_adapter.c index 4c88922b8..7efbd2c7b 100644 --- a/bfdd/ptm_adapter.c +++ b/bfdd/ptm_adapter.c @@ -24,6 +24,7 @@ #include "lib/queue.h" #include "lib/stream.h" #include "lib/zclient.h" +#include "lib/printfrr.h" #include "lib/bfd.h" @@ -105,12 +106,12 @@ static void debug_printbpc(const struct bfd_peer_cfg *bpc, const char *fmt, ...) snprintf(addr[2], sizeof(addr[2]), " vrf:%s", bpc->bpc_vrfname); if (bpc->bpc_has_recvinterval) - snprintf(timers[0], sizeof(timers[0]), " rx:%" PRIu64, - bpc->bpc_recvinterval); + snprintfrr(timers[0], sizeof(timers[0]), " rx:%" PRIu64, + bpc->bpc_recvinterval); if (bpc->bpc_has_txinterval) - snprintf(timers[1], sizeof(timers[1]), " tx:%" PRIu64, - bpc->bpc_recvinterval); + snprintfrr(timers[1], sizeof(timers[1]), " tx:%" PRIu64, + bpc->bpc_recvinterval); if (bpc->bpc_has_detectmultiplier) snprintf(timers[2], sizeof(timers[2]), " detect-multiplier:%d", |