diff options
author | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2006-09-19 18:51:53 +0000 |
---|---|---|
committer | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2006-09-19 18:51:53 +0000 |
commit | 0cd1c32dc36ad650d6e21d44c3b289982d1f62a0 (patch) | |
tree | c474767b3fe407ac63b47ea4cced9c9ac7ee04ba /bgpd | |
parent | 09dd561eb444ab009103b2dde62db212eae7064a (diff) |
[bgpd] Trivial fix of printf format/arg mismatch
2006-09-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* bgpd.c: (peer_uptime) Fix printf format/arg mismatch in
zlog_warn message (%ld/size_t -> %lu/u_long).
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/ChangeLog | 5 | ||||
-rw-r--r-- | bgpd/bgpd.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog index 7f0130a9..2294f89a 100644 --- a/bgpd/ChangeLog +++ b/bgpd/ChangeLog @@ -1,3 +1,8 @@ +2006-09-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu> + + * bgpd.c: (peer_uptime) Fix printf format/arg mismatch in + zlog_warn message (%ld/size_t -> %lu/u_long). + 2006-09-14 Paul Jakma <paul.jakma@sun.com> * bgp_route.c: (bgp_table_stats_walker) Address space announced diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 89f82628..1ead13cf 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -4250,8 +4250,7 @@ peer_uptime (time_t uptime2, char *buf, size_t len) /* Check buffer length. */ if (len < BGP_UPTIME_LEN) { - /* XXX: warning: long int format, size_t arg (arg 2) */ - zlog_warn ("peer_uptime (): buffer shortage %ld", len); + zlog_warn ("peer_uptime (): buffer shortage %lu", (u_long)len); /* XXX: should return status instead of buf... */ snprintf (buf, len, "<error> "); return buf; |