2004-11-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* sockopt.c: (setsockopt_so_recvbuf) Stop error message from being
printed every time.
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 3f846ae..06b4625 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+ * sockopt.c: (setsockopt_so_recvbuf) Stop error message from being
+ printed every time.
+
2004-11-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* memory.h: Fix prototype for memory_init().
diff --git a/lib/sockopt.c b/lib/sockopt.c
index 78e34bb..f424f03 100644
--- a/lib/sockopt.c
+++ b/lib/sockopt.c
@@ -29,8 +29,9 @@
int ret;
if ( (ret = setsockopt (sock, SOL_SOCKET, SO_RCVBUF, (char *)
- &size, sizeof (int))) < 0);
- zlog_err ("can't setsockopt SO_RCVBUF");
+ &size, sizeof (int))) < 0)
+ zlog_err ("fd %d: can't setsockopt SO_RCVBUF to %d: %s",
+ sock,size,strerror(errno));
return ret;
}