summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaul <paul>2004-10-31 18:58:09 +0000
committerpaul <paul>2004-10-31 18:58:09 +0000
commita2b1ecd29f8bd4b01d5287ff862e156b2ffc30b3 (patch)
tree6c4947a0e49537be984ca482b5b4f32b3763d2bc
parent64511f394a90602a31cbe1660be426c16439322c (diff)
2004-10-31 Paul Jakma <paul@dishone.st>
* {bgpd,bgp_attr}.c: size_t printf format should be ld.
-rw-r--r--bgpd/ChangeLog4
-rw-r--r--bgpd/bgp_attr.c2
-rw-r--r--bgpd/bgpd.c2
3 files changed, 6 insertions, 2 deletions
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog
index 3028e727..56e13d04 100644
--- a/bgpd/ChangeLog
+++ b/bgpd/ChangeLog
@@ -1,3 +1,7 @@
+2004-10-31 Paul Jakma <paul@dishone.st>
+
+ * {bgpd,bgp_attr}.c: size_t printf format should be ld.
+
2004-10-25 Paul Jakma <paul@dishone.st>
* Update with fix in debian bug id 222930.
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
index c8f5ed62..410754ef 100644
--- a/bgpd/bgp_attr.c
+++ b/bgpd/bgp_attr.c
@@ -1167,7 +1167,7 @@ bgp_attr_parse (struct peer *peer, struct attr *attr, bgp_size_t size,
if (endp - BGP_INPUT_PNT (peer) < BGP_ATTR_MIN_LEN)
{
zlog (peer->log, LOG_WARNING,
- "%s error BGP attribute length %d is smaller than min len",
+ "%s error BGP attribute length %ld is smaller than min len",
peer->host, endp - STREAM_PNT (BGP_INPUT (peer)));
bgp_notify_send (peer,
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 663f01be..26c44553 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -4122,7 +4122,7 @@ peer_uptime (time_t uptime2, char *buf, size_t len)
/* Check buffer length. */
if (len < BGP_UPTIME_LEN)
{
- zlog_warn ("peer_uptime (): buffer shortage %d", len);
+ zlog_warn ("peer_uptime (): buffer shortage %ld", len);
/* XXX: should return status instead of buf... */
snprintf (buf, len, "<error> ");
return buf;