summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2017-12-25 14:14:45 -0800
committerJohn Crispin <john@phrozen.org>2018-01-02 13:01:31 +0100
commit810d7a51c584673f3511f1fa2eb447c67fd7f88e (patch)
treebed84075d507bdeea0ded29cd8f41dc2d6db215b /utils
parentfa5ce1c2b4fe3fa6bb4bbc6697961655b952d8d4 (diff)
downloadprocd-810d7a51c584673f3511f1fa2eb447c67fd7f88e.tar.gz
procd: Remove redundant errno variable in several printf functions.
%m, aka strerror(errno) is already used. No need to repeat it. Saves 280 bytes. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/utils.c b/utils/utils.c
index 57c82eb..c5b9513 100644
--- a/utils/utils.c
+++ b/utils/utils.c
@@ -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 (%m)\n",
- fdname[fd], device, errno);
+ ERROR("Failed to redirect %s to %s: %m\n",
+ fdname[fd], device);
rv = -1;
}
}