]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
daemon: give the name of the control socket
authorVincent Bernat <vincent@bernat.im>
Sun, 15 May 2016 19:14:13 +0000 (21:14 +0200)
committerVincent Bernat <vincent@bernat.im>
Sun, 15 May 2016 19:14:13 +0000 (21:14 +0200)
Otherwise, people have to enable debug to get the information.

src/daemon/lldpd.c

index 3a3c72484ae6631eb97505d6df1e92ef0c88b694..da2e37a53e845a790fcf142fdf6b12be9a41fd3c 100644 (file)
@@ -1660,7 +1660,7 @@ lldpd_main(int argc, char *argv[], char *envp[])
                        log_warn("main", "cannot determine if another daemon is already running");
                        fatalx("main", "giving up");
                }
-               log_warn("main", "unable to create control socket");
+               log_warn("main", "unable to create control socket at %s", ctlname);
                fatalx("main", "giving up");
        }
 #ifdef ENABLE_PRIVSEP