procd: Replace strerror(errno) with %m.
[project/procd.git] / utils / utils.c
index e239eda5110ec4e38b88880d7b7d24341389e85e..57c82ebbd01510dbae27dfd3bd322693fdd47f49 100644 (file)
@@ -203,8 +203,8 @@ int patch_stdio(const char *device)
 
        for (fd = STDIN_FILENO; fd <= STDERR_FILENO; fd++) {
                if (patch_fd(device, fd, fd ? O_WRONLY : O_RDONLY)) {
-                       ERROR("Failed to redirect %s to %s: %d (%s)\n",
-                             fdname[fd], device, errno, strerror(errno));
+                       ERROR("Failed to redirect %s to %s: %d (%m)\n",
+                             fdname[fd], device, errno);
                        rv = -1;
                }
        }