summaryrefslogtreecommitdiff
path: root/proto/ospf/iface.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2018-10-25 17:21:06 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-10-25 17:21:06 +0200
commitfff79b1c1e0577f487b4fb67f79a74b054d734b6 (patch)
treec10af392cbf8152002be62b426bb3206c2945e46 /proto/ospf/iface.c
parentc0fc3e67185c1e0ff2d083572c6ad3983ba4ef25 (diff)
OSPF: Fix some trace messages
Missing argument in MTU change trace message can crash bird when MTU change happens and trace messages are active. Thanks to Alexander Velkov for the bugreport.
Diffstat (limited to 'proto/ospf/iface.c')
-rw-r--r--proto/ospf/iface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index 1795ec22..6e3a48b3 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -1256,7 +1256,8 @@ ospf_iface_change_mtu(struct ospf_proto *p, struct ospf_iface *ifa)
{
/* ifa is not vlink */
- OSPF_TRACE(D_EVENTS, "Interface %s changed MTU to %d", ifa->iface->mtu);
+ OSPF_TRACE(D_EVENTS, "Interface %s changed MTU to %d",
+ ifa->ifname, ifa->iface->mtu);
ifa->tx_length = ifa_tx_length(ifa);