diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-10-18 14:33:54 +0300 | 
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-10-22 09:07:41 +0300 | 
| commit | 2dbe669bdf0f0bcbf0228ccdab7b631bd8b934f1 (patch) | |
| tree | 69c38032b07630b46d2d5852200789b13392153c /ospf6d/ospf6_spf.c | |
| parent | 719e0a6a6c4af04d1e9f4ef4bcc1855fc35fda6c (diff) | |
:* Convert prefix2str to %pFX
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'ospf6d/ospf6_spf.c')
| -rw-r--r-- | ospf6d/ospf6_spf.c | 9 | 
1 files changed, 3 insertions, 6 deletions
diff --git a/ospf6d/ospf6_spf.c b/ospf6d/ospf6_spf.c index bb6a050976..d3a330c3c7 100644 --- a/ospf6d/ospf6_spf.c +++ b/ospf6d/ospf6_spf.c @@ -320,7 +320,6 @@ static int ospf6_spf_install(struct ospf6_vertex *v,  {  	struct ospf6_route *route, *parent_route;  	struct ospf6_vertex *prev; -	char pbuf[PREFIX2STR_BUFFER];  	if (IS_OSPF6_DEBUG_SPF(PROCESS))  		zlog_debug("SPF install %s (lsa %s) hops %d cost %d", v->name, @@ -335,12 +334,10 @@ static int ospf6_spf_install(struct ospf6_vertex *v,  		ospf6_vertex_delete(v);  		return -1;  	} else if (route && route->path.cost == v->cost) { -		if (IS_OSPF6_DEBUG_SPF(PROCESS)) { -			prefix2str(&route->prefix, pbuf, sizeof(pbuf)); +		if (IS_OSPF6_DEBUG_SPF(PROCESS))  			zlog_debug( -				"  another path found to route %s lsa %s, merge", -				pbuf, v->lsa->name); -		} +				"  another path found to route %pFX lsa %s, merge", +				&route->prefix, v->lsa->name);  		ospf6_spf_merge_nexthops_to_route(route, v);  		prev = (struct ospf6_vertex *)route->route_option;  | 
