summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shl_log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shl_log.c b/src/shl_log.c
index 5b726a4..5318710 100644
--- a/src/shl_log.c
+++ b/src/shl_log.c
@@ -320,8 +320,8 @@ int log_set_file(const char *file)
if (file) {
f = fopen(file, "a");
if (!f) {
- log_err("cannot change log-file to %s (%d): %s",
- file, errno, strerror(errno));
+ log_err("cannot change log-file to %s (%d): %m",
+ file, errno);
return -EFAULT;
}
} else {