From 406e4299a11df7b5a4b698528ecc66012031a656 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 25 Jan 2021 00:11:43 +0100 Subject: [PATCH] logger: No need for appending error message, err() already does this Signed-off-by: Joachim Wiberg --- src/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logger.c b/src/logger.c index a0c25ba..221f6d6 100644 --- a/src/logger.c +++ b/src/logger.c @@ -297,7 +297,7 @@ int main(int argc, char *argv[]) log_opts |= LOG_NLOG; fp = fopen(logfile, "a"); if (!fp) - err(1, "Failed opening %s for writing: %m", logfile); + err(1, "Failed opening %s for writing", logfile); } else { log_opts |= LOG_STDOUT; fp = stdout;