diff options
| author | Roy Marples <roy@marples.name> | 2008-09-05 18:24:34 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-09-05 18:24:34 +0000 |
| commit | 765fbf7db0669762f6fe4f829f37c6b10de77fe4 (patch) | |
| tree | 56290e5630958b75f89dea657836284eaeb25ec5 /ipv4ll.c | |
| parent | f25f3fb214d3106bb12fdaa0b67eeabd3dadbb0a (diff) | |
| download | dhcpcd-765fbf7db0669762f6fe4f829f37c6b10de77fe4.tar.xz | |
Remove logger and exclusively uses syslog instead. This saves almost 2K on NetBSD/amd64 from before changing strerror to %m.
Diffstat (limited to 'ipv4ll.c')
| -rw-r--r-- | ipv4ll.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -28,6 +28,7 @@ #include <errno.h> #include <signal.h> #include <stdlib.h> +#include <syslog.h> #include <unistd.h> #include "arp.h" @@ -36,7 +37,6 @@ #include "eloop.h" #include "if-options.h" #include "ipv4ll.h" -#include "logger.h" #include "net.h" static struct dhcp_message* @@ -87,7 +87,7 @@ start_ipv4ll(void *arg) } } - logger(LOG_INFO, "%s: probing for an IPv4LL address", iface->name); + syslog(LOG_INFO, "%s: probing for an IPv4LL address", iface->name); delete_timeout(NULL, iface); iface->state->state = DHS_PROBING; free(iface->state->offer); @@ -118,7 +118,7 @@ handle_ipv4ll_failure(void *arg) close_sockets(iface); if (++iface->state->conflicts > MAX_CONFLICTS) { - logger(LOG_ERR, "%s: failed to acquire an IPv4LL address", + syslog(LOG_ERR, "%s: failed to acquire an IPv4LL address", iface->name); iface->state->interval = RATE_LIMIT_INTERVAL / 2; start_discover(iface); |
