aboutsummaryrefslogtreecommitdiff
path: root/ex.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-02-07 16:09:49 +0000
committerOmar Polo <op@omarpolo.com>2021-02-07 16:09:49 +0000
commita64959c99a63178209c3612c98c8c093bf60b431 (patch)
treec8a1502aa74b3a93fb8bdf08efbd737f5bc37d57 /ex.c
parent3abf91b0b4a06e5d2f90e41f948e9c16478e23c7 (diff)
use log_err instead of fprintf
Diffstat (limited to 'ex.c')
-rw-r--r--ex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ex.c b/ex.c
index d6bcabf..58f5004 100644
--- a/ex.c
+++ b/ex.c
@@ -165,7 +165,7 @@ send_fd(int fd, int d)
msg.msg_iovlen = 1;
if ((n = sendmsg(fd, &msg, 0)) == -1 || n != sizeof(int)) {
- fprintf(stderr, "sendmsg: got %zu but wanted %zu: (errno) %s",
+ log_err(NULL, "sendmsg: got %zu but wanted %zu: (errno) %s",
n, sizeof(int), strerror(errno));
return 0;
}
@@ -195,7 +195,7 @@ recv_fd(int fd)
msg.msg_controllen = sizeof(cmsgbuf.buf);
if ((n = recvmsg(fd, &msg, 0)) != sizeof(int)) {
- fprintf(stderr, "read %zu bytes bu wanted %zu\n", n, sizeof(int));
+ log_err(NULL, "read %zu bytes bu wanted %zu\n", n, sizeof(int));
return -1;
}