summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-11-23 21:44:34 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-11-23 22:31:11 +0100
commit4690c7d74c8d3f08ac3c4c73918c847a9dd862b4 (patch)
tree55e97b177d0b5c153f8390342660a412d5e33a19 /ospfd/ospf_zebra.c
parentQuagga: Fixup some compile warnings (diff)
downloadfrr-4690c7d74c8d3f08ac3c4c73918c847a9dd862b4.tar.xz
frr-4690c7d74c8d3f08ac3c4c73918c847a9dd862b4.zip
Quagga: prefix2str fixup
During CR for nexthop upstream it was noticed that usage of prefix2str was not consistent. This fixes this problem Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_zebra.c')
-rw-r--r--ospfd/ospf_zebra.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c
index 0d77e8d3a..b5980072a 100644
--- a/ospfd/ospf_zebra.c
+++ b/ospfd/ospf_zebra.c
@@ -70,7 +70,7 @@ ospf_router_id_update_zebra (int command, struct zclient *zclient,
if (IS_DEBUG_OSPF (zebra, ZEBRA_INTERFACE))
{
- char buf[128];
+ char buf[PREFIX2STR_BUFFER];
prefix2str(&router_id, buf, sizeof(buf));
zlog_debug("Zebra rcvd: router id update %s", buf);
}
@@ -266,7 +266,7 @@ ospf_interface_address_add (int command, struct zclient *zclient,
if (IS_DEBUG_OSPF (zebra, ZEBRA_INTERFACE))
{
- char buf[128];
+ char buf[PREFIX2STR_BUFFER];
prefix2str(c->address, buf, sizeof(buf));
zlog_debug("Zebra: interface %s address add %s", c->ifp->name, buf);
}
@@ -297,7 +297,7 @@ ospf_interface_address_delete (int command, struct zclient *zclient,
if (IS_DEBUG_OSPF (zebra, ZEBRA_INTERFACE))
{
- char buf[128];
+ char buf[PREFIX2STR_BUFFER];
prefix2str(c->address, buf, sizeof(buf));
zlog_debug("Zebra: interface %s address delete %s", c->ifp->name, buf);
}