Commit Diff


commit - 3abf91b0b4a06e5d2f90e41f948e9c16478e23c7
commit + a64959c99a63178209c3612c98c8c093bf60b431
blob - d6bcabf485c3f54c9fa043dc420c39b7f14849e7
blob + 58f5004c7513d3f6f2e4566099fad2bb3b9cb1c4
--- ex.c
+++ 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;
 	}