From: Vincent Bernat Date: Sat, 16 Jun 2018 15:36:16 +0000 (+0200) Subject: priv: don't use %m in format string X-Git-Tag: 1.0.2~16^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a0e2dc0b0b9a91ffbeb95ab89dd985b6cc70c279;p=thirdparty%2Flldpd.git priv: don't use %m in format string This is not portable, use %s, even if we are on Linux. --- diff --git a/src/daemon/priv-linux.c b/src/daemon/priv-linux.c index e96606e8..950f0781 100644 --- a/src/daemon/priv-linux.c +++ b/src/daemon/priv-linux.c @@ -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; }