]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Improve messages
authorRoy Marples <roy@marples.name>
Mon, 3 Jun 2013 22:21:00 +0000 (22:21 +0000)
committerRoy Marples <roy@marples.name>
Mon, 3 Jun 2013 22:21:00 +0000 (22:21 +0000)
dhcp.c
dhcp6.c

diff --git a/dhcp.c b/dhcp.c
index 6f96588e91fbe31fe2d892dfba97c8e0fadeb59f..5514f3aadacbe8d0d8faac5be4e58659a8fa4188 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -1631,10 +1631,10 @@ dhcp_discover(void *arg)
                        eloop_timeout_add_sec(timeout, ipv4ll_start, iface);
        }
        if (ifo->options & DHCPCD_REQUEST)
-               syslog(LOG_INFO, "%s: broadcasting for a lease (requesting %s)",
+               syslog(LOG_INFO, "%s: soliciting a DHCP lease (requesting %s)",
                    iface->name, inet_ntoa(ifo->req_addr));
        else
-               syslog(LOG_INFO, "%s: broadcasting for a lease", iface->name);
+               syslog(LOG_INFO, "%s: soliciting a DHCP lease", iface->name);
        send_discover(iface);
 }
 
@@ -1662,7 +1662,7 @@ dhcp_expire(void *arg)
                return;
        }
 
-       syslog(LOG_ERR, "%s: lease expired", ifp->name);
+       syslog(LOG_ERR, "%s: DHCP lease expired", ifp->name);
        eloop_timeout_delete(NULL, ifp);
        dhcp_drop(ifp, "EXPIRE");
        unlink(state->leasefile);
@@ -1702,7 +1702,7 @@ dhcp_rebind(void *arg)
        struct dhcp_state *state = D_STATE(ifp);
        struct dhcp_lease *lease = &state->lease;
 
-       syslog(LOG_WARNING, "%s: failed to renew, attempting to rebind",
+       syslog(LOG_WARNING, "%s: failed to renew DHCP, rebinding",
            ifp->name);
        syslog(LOG_DEBUG, "%s: expire in %"PRIu32" seconds",
            ifp->name, lease->leasetime - lease->rebindtime);
diff --git a/dhcp6.c b/dhcp6.c
index 7c307da9c5ef9df15a2950e092f289304f710c23..eec549926a67bc1769f6b7e764e717cc03b26e11 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -817,7 +817,7 @@ dhcp6_startrebind(void *arg)
        eloop_timeout_delete(dhcp6_sendrenew, ifp);
        state = D6_STATE(ifp);
        if (state->state == DH6S_RENEW)
-               syslog(LOG_WARNING, "%s: failed to renew, rebinding",
+               syslog(LOG_WARNING, "%s: failed to renew DHCPv6, rebinding",
                    ifp->name);
        state->state = DH6S_REBIND;
        state->RTC = 0;