diff options
| author | Timo Teräs <timo.teras@iki.fi> | 2015-05-23 11:08:41 +0300 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-09 09:08:05 -0400 | 
| commit | 35d921cc20eca237893492dafe661f94d4e87837 (patch) | |
| tree | 7ba59ff60352c1bb87134ee62177f4bbcab4de87 /zebra/irdp_main.c | |
| parent | 196aecefeb713b9da43f13eebebae84ace403f1a (diff) | |
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>
(cherry picked from commit be6335d682c5ee1b6930345193eda875705fbab2)
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 069a2df006..c68eca42a6 100644 --- a/zebra/irdp_main.c +++ b/zebra/irdp_main.c @@ -178,6 +178,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; @@ -189,10 +190,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));  | 
