procd: Replace strerror(errno) with %m.
[project/procd.git] / jail / fs.c
index c4cdcc9..81e6c61 100644 (file)
--- a/jail/fs.c
+++ b/jail/fs.c
@@ -135,7 +135,7 @@ int add_path_and_deps(const char *path, int readonly, int error, int lib)
 
        struct stat s;
        if (fstat(fd, &s) == -1) {
-               ERROR("fstat(%s) failed: %s\n", path, strerror(errno));
+               ERROR("fstat(%s) failed: %m\n", path);
                ret = error;
                goto out;
        }