From c8ab692e1f05ae69277f1b30791af3da1eaef37f Mon Sep 17 00:00:00 2001 From: "Thordur I. Bjornsson" Date: Tue, 24 Apr 2007 18:15:05 +0000 Subject: Dont log() send failures in nfs_send(), they arent helpful since we retry and recover for the client case (or terminate with EINTR if to many retries), and in the server case, if we cant send due to f.x network troubles its up to the client to retry not the server. (server not responding messages are logged in another place though). discussed with deraadt@ --- sys/nfs/nfs_socket.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sys') diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c index 1f3fbb67628..b16e9d183c3 100644 --- a/sys/nfs/nfs_socket.c +++ b/sys/nfs/nfs_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_socket.c,v 1.46 2006/10/28 20:56:46 thib Exp $ */ +/* $OpenBSD: nfs_socket.c,v 1.47 2007/04/24 18:15:04 thib Exp $ */ /* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */ /* @@ -401,8 +401,6 @@ nfs_send(so, nam, top, rep) (struct mbuf *)0, flags); if (error) { if (rep) { - log(LOG_INFO, "nfs send error %d for server %s\n",error, - rep->r_nmp->nm_mountp->mnt_stat.f_mntfromname); /* * Deal with errors for the client side. */ @@ -410,8 +408,7 @@ nfs_send(so, nam, top, rep) error = EINTR; else rep->r_flags |= R_MUSTRESEND; - } else - log(LOG_INFO, "nfsd send error %d\n", error); + } /* * Handle any recoverable (soft) socket errors here. (???) -- cgit v1.2.3