]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't log spam carrier or infinite.
authorRoy Marples <roy@marples.name>
Wed, 30 Jul 2008 14:28:53 +0000 (14:28 +0000)
committerRoy Marples <roy@marples.name>
Wed, 30 Jul 2008 14:28:53 +0000 (14:28 +0000)
client.c

index d611198286c557b6de6741fd3ead6f6d5e97fe37..1e91f791c1e6e46a5d192a6163199706330b92c4 100644 (file)
--- a/client.c
+++ b/client.c
@@ -789,12 +789,16 @@ wait_for_fd(struct if_state *state, int *fd)
        if (state->lease.leasetime == ~0U &&
            state->state == STATE_BOUND)
        {
-               if (last_stop_sec != INFTIM)
+               if (last_stop_sec != INFTIM) {
                        logger(LOG_DEBUG, "waiting for infinity");
+                       last_stop_sec = INFTIM;
+               }
                ref = NULL;
        } else if (state->carrier == LINK_DOWN && !ref) {
-               if (last_stop_sec != INFTIM)
+               if (last_stop_sec != INFTIM) {
                        logger(LOG_DEBUG, "waiting for carrier");
+                       last_stop_sec = INFTIM;
+               }
                ref = NULL;
        } else {
                if (state->interface->raw_fd != -1) {