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 {