]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
priv: don't use %m in format string
authorVincent Bernat <vincent@bernat.im>
Sat, 16 Jun 2018 15:36:16 +0000 (17:36 +0200)
committerVincent Bernat <vincent@bernat.im>
Sat, 16 Jun 2018 15:48:01 +0000 (17:48 +0200)
This is not portable, use %s, even if we are on Linux.

src/daemon/priv-linux.c

index e96606e8fa9b4ddb5b33c887bb436c463dd54b0d..950f0781a7b43542910e25852a5e8ffb06da597b 100644 (file)
@@ -188,8 +188,8 @@ asroot_iface_description_os(const char *name, const char *description)
        }
        if ((fp = fopen(file, "r+")) == NULL) {
                rc = errno;
-               log_debug("privsep", "cannot open interface description for %s: %m",
-                   name);
+               log_debug("privsep", "cannot open interface description for %s: %s",
+                   name, strerror(errno));
                free(file);
                return rc;
        }