summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2017-12-25 14:14:44 -0800
committerJohn Crispin <john@phrozen.org>2018-01-02 13:01:10 +0100
commitfa5ce1c2b4fe3fa6bb4bbc6697961655b952d8d4 (patch)
tree6fed6c217b135594bbd78b2ffddc1074099c1c10 /utils
parent6900a6be63c63707c304cfe79c7469725fd07c11 (diff)
downloadprocd-fa5ce1c2b4fe3fa6bb4bbc6697961655b952d8d4.tar.gz
procd: Replace strerror(errno) with %m.
Saves 1496 bytes from compiled size under glibc. No functional difference. 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 e239eda..57c82eb 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 (%s)\n",
- fdname[fd], device, errno, strerror(errno));
+ ERROR("Failed to redirect %s to %s: %d (%m)\n",
+ fdname[fd], device, errno);
rv = -1;
}
}