]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
if: Be more descriptive on error for getifaddrs
authorRoy Marples <roy@marples.name>
Thu, 7 May 2020 14:02:26 +0000 (15:02 +0100)
committerRoy Marples <roy@marples.name>
Thu, 7 May 2020 14:02:26 +0000 (15:02 +0100)
src/if.c

index 1d099b6d4ed176b14a2036caadfcd86862c7abb7..3fbb38f761da4bfcee432d019d2345749d571055 100644 (file)
--- a/src/if.c
+++ b/src/if.c
@@ -393,7 +393,7 @@ if_discover(struct dhcpcd_ctx *ctx, struct ifaddrs **ifaddrs,
                return NULL;
        }
        if (getifaddrs(ifaddrs) == -1) {
-               logerr(__func__);
+               logerr("getifaddrs");
                free(ifs);
                return NULL;
        }