]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: Give a bit more data when sendmsg fails
authorDonald Sharp <sharpd@nvidia.com>
Thu, 29 Oct 2020 12:53:43 +0000 (08:53 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 29 Oct 2020 12:53:43 +0000 (08:53 -0400)
When sendmsg fails add a bit more data in hopes we can
figure out what is going wrong.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
ospf6d/ospf6_network.c

index 43b6d08b544ece2f735b0589f8bd52f709c32d10..94e80b0f28b371e3e3bd94d19178aac9f8941117 100644 (file)
@@ -222,7 +222,8 @@ int ospf6_sendmsg(struct in6_addr *src, struct in6_addr *dst,
 
        retval = sendmsg(ospf6_sock, &smsghdr, 0);
        if (retval != iov_totallen(message))
-               zlog_warn("sendmsg failed: ifindex: %d: %s (%d)", ifindex,
+               zlog_warn("sendmsg failed: source: %pI6 Dest: %pI6 ifindex: %d: %s (%d)",
+                         src, dst, ifindex,
                          safe_strerror(errno), errno);
 
        return retval;