diff options
author | Renato Westphal <renato@cvs.openbsd.org> | 2015-04-04 15:04:50 +0000 |
---|---|---|
committer | Renato Westphal <renato@cvs.openbsd.org> | 2015-04-04 15:04:50 +0000 |
commit | 7331cca069b783a108e1077c42835ea0f5eaed68 (patch) | |
tree | 899f114220cb7d2900dcd187a9f89d1790ed0a27 /usr.sbin | |
parent | 494e039b0067be4fdbdae30b515309f0b1f54321 (diff) |
Give more detailed information on a couple of debug messages.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ldpd/packet.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/ldpd/packet.c b/usr.sbin/ldpd/packet.c index f7f5b5d4a83..aeafa9e40a8 100644 --- a/usr.sbin/ldpd/packet.c +++ b/usr.sbin/ldpd/packet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.37 2015/02/09 11:54:24 claudio Exp $ */ +/* $OpenBSD: packet.c,v 1.38 2015/04/04 15:04:49 renato Exp $ */ /* * Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> @@ -95,7 +95,8 @@ send_packet(int fd, struct iface *iface, void *pkt, size_t len, if (sendto(fd, pkt, len, 0, (struct sockaddr *)dst, sizeof(*dst)) == -1) { - log_warn("send_packet: error sending packet"); + log_warn("send_packet: error sending packet to %s", + inet_ntoa(dst->sin_addr)); return (-1); } @@ -157,7 +158,9 @@ disc_recv_packet(int fd, short event, void *bula) /* find a matching interface */ if ((fd == leconf->ldp_discovery_socket) && (iface = disc_find_iface(ifindex, src.sin_addr)) == NULL) { - log_debug("disc_recv_packet: cannot find a matching interface"); + log_debug("disc_recv_packet: cannot find a matching subnet " + "on interface index %d for %s", ifindex, + inet_ntoa(src.sin_addr)); return; } |