X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=utils%2Futils.c;h=c5b951356a7e0251e11f227b2693f6ecce108f50;hp=57c82ebbd01510dbae27dfd3bd322693fdd47f49;hb=810d7a51c584673f3511f1fa2eb447c67fd7f88e;hpb=fa5ce1c2b4fe3fa6bb4bbc6697961655b952d8d4 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; } }