]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Report error from correct function.
authorRoy Marples <roy@marples.name>
Tue, 21 Jan 2014 17:13:42 +0000 (17:13 +0000)
committerRoy Marples <roy@marples.name>
Tue, 21 Jan 2014 17:13:42 +0000 (17:13 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 7eb1665a485a1414ff053c94c288d312e247d8c1..f9710bbcee5bf3b1659d78fdb768435fdce5f2e5 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -1501,7 +1501,8 @@ send_message(struct interface *iface, int type,
                 * As such we remove it from consideration without actually
                 * stopping the interface. */
                if (r == -1) {
-                       syslog(LOG_ERR, "%s: send_raw_packet: %m", iface->name);
+                       syslog(LOG_ERR, "%s: ipv4_sendrawpacket: %m",
+                           iface->name);
                        if (!(options & DHCPCD_TEST))
                                dhcp_drop(iface, "FAIL");
                        dhcp_close(iface);