diff options
author | Timo Teräs <timo.teras@iki.fi> | 2015-05-23 11:08:41 +0300 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2015-06-01 16:50:58 +0200 |
commit | be6335d682c5ee1b6930345193eda875705fbab2 (patch) | |
tree | 2107740224a8a6b3f44241ba71d9be562f138232 /zebra/irdp_main.c | |
parent | 53a5c39c705f917567d5b1764f1fe12ad5c5e577 (diff) | |
download | quagga-be6335d682c5ee1b6930345193eda875705fbab2.tar.bz2 quagga-be6335d682c5ee1b6930345193eda875705fbab2.tar.xz |
zebra: use prefix2str for logging where possible
This makes code more robust, consice and readable.
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/irdp_main.c')
-rw-r--r-- | zebra/irdp_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/irdp_main.c b/zebra/irdp_main.c index c297979c..cf78a54e 100644 --- a/zebra/irdp_main.c +++ b/zebra/irdp_main.c @@ -180,6 +180,7 @@ irdp_send(struct interface *ifp, struct prefix *p, struct stream *s) { struct zebra_if *zi=ifp->info; struct irdp_interface *irdp=&zi->irdp; + char buf[PREFIX_STRLEN]; u_int32_t dst; u_int32_t ttl=1; @@ -191,10 +192,9 @@ irdp_send(struct interface *ifp, struct prefix *p, struct stream *s) dst = htonl(INADDR_ALLHOSTS_GROUP); if(irdp->flags & IF_DEBUG_MESSAGES) - zlog_debug("IRDP: TX Advert on %s %s/%d Holdtime=%d Preference=%d", + zlog_debug("IRDP: TX Advert on %s %s Holdtime=%d Preference=%d", ifp->name, - inet_ntoa(p->u.prefix4), - p->prefixlen, + prefix2str(p, buf, sizeof buf), irdp->flags & IF_SHUTDOWN? 0 : irdp->Lifetime, get_pref(irdp, p)); |