From 5c78e0e386d4c770b646cab4a8adc3c87987f50f Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sun, 22 Jan 2012 11:03:30 +0100 Subject: Some more verbose warnings. --- proto/ospf/ospf.h | 2 +- proto/ospf/packet.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index 60a34fba..d6961519 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -177,7 +177,7 @@ struct ospf_area_config struct ospf_iface { node n; - struct iface *iface; /* Nest's iface */ + struct iface *iface; /* Nest's iface, non-NULL (unless type OSPF_IT_VLINK) */ struct ifa *addr; /* IP prefix associated with that OSPF iface */ struct ospf_area *oa; struct ospf_iface_patt *cf; diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c index df67d5a0..7a26967f 100644 --- a/proto/ospf/packet.c +++ b/proto/ospf/packet.c @@ -489,17 +489,17 @@ ospf_rx_hook(sock *sk, int size) void ospf_tx_hook(sock * sk) { -// struct ospf_iface *ifa= (struct ospf_iface *) (sk->data); + struct ospf_iface *ifa= (struct ospf_iface *) (sk->data); // struct proto *p = (struct proto *) (ifa->oa->po); - log(L_ERR "OSPF: TX_Hook called"); + log(L_ERR "OSPF: TX hook called on %s", ifa->iface->name); } void ospf_err_hook(sock * sk, int err) { -// struct ospf_iface *ifa= (struct ospf_iface *) (sk->data); + struct ospf_iface *ifa= (struct ospf_iface *) (sk->data); // struct proto *p = (struct proto *) (ifa->oa->po); - log(L_ERR "OSPF: Socket error: %M", err); + log(L_ERR "OSPF: Socket error on %s: %M", ifa->iface->name, err); } void -- cgit v1.2.3