diff options
author | David Lamparter <equinox@diac24.net> | 2020-01-21 15:02:41 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2020-01-21 16:35:00 +0100 |
commit | b7b3d466eb9dc631753d6ddc0b32d5a7ad1ded8f (patch) | |
tree | eb3c0ee228b1c2444d0364eedabbfc2fdba91e57 /bfdd/bfd_packet.c | |
parent | bfdd: remove logging shim (diff) | |
download | frr-b7b3d466eb9dc631753d6ddc0b32d5a7ad1ded8f.tar.xz frr-b7b3d466eb9dc631753d6ddc0b32d5a7ad1ded8f.zip |
bfdd: fix format strings
... now that we get warnings about them ...
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'bfdd/bfd_packet.c')
-rw-r--r-- | bfdd/bfd_packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfdd/bfd_packet.c b/bfdd/bfd_packet.c index 6da5e2cdf..1ec761e3b 100644 --- a/bfdd/bfd_packet.c +++ b/bfdd/bfd_packet.c @@ -116,7 +116,7 @@ int _ptm_bfd_send(struct bfd_session *bs, uint16_t *port, const void *data, return -1; } if (rv < (ssize_t)datalen) - log_debug("packet-send: send partial", strerror(errno)); + log_debug("packet-send: send partial: %s", strerror(errno)); return 0; } @@ -799,7 +799,7 @@ int bp_udp_send(int sd, uint8_t ttl, uint8_t *data, size_t datalen, log_debug("udp-send: loopback failure: (%d) %s", errno, strerror(errno)); return -1; } else if (wlen < (ssize_t)datalen) { - log_debug("udp-send: partial send: %ld expected %ld", wlen, + log_debug("udp-send: partial send: %zd expected %zu", wlen, datalen); return -1; } |