]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Add why dhcpcd is ignoring an interface in debug output.
authorRoy Marples <roy@marples.name>
Fri, 6 Mar 2015 08:40:35 +0000 (08:40 +0000)
committerRoy Marples <roy@marples.name>
Fri, 6 Mar 2015 08:40:35 +0000 (08:40 +0000)
if.c

diff --git a/if.c b/if.c
index 3eb8579679a4660a27279485b5cd1b071ea9a35b..7526b77a895df500f00fe8a33fe8f8dc75edb384 100644 (file)
--- a/if.c
+++ b/if.c
@@ -345,6 +345,11 @@ if_discover(struct dhcpcd_ctx *ctx, int argc, char * const *argv)
                                    ctx->ifac == 0 &&
                                    !if_hasconf(ctx, ifp->name))
                                {
+                                       syslog(LOG_DEBUG,
+                                           "%s: ignoring due to"
+                                           " interface type and"
+                                           " no config",
+                                           ifp->name);
                                        if_free(ifp);
                                        continue;
                                }