summaryrefslogtreecommitdiffstats
path: root/sys/lib/libsa/nfs.c
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2017-05-08 20:13:46 +0000
committerpatrick <patrick@openbsd.org>2017-05-08 20:13:46 +0000
commit5a0183c521de487e8234f0b4cda8f6ffc2ef5953 (patch)
treed6cc7a7cd7898dae901d7e0c90caa1608893bb40 /sys/lib/libsa/nfs.c
parentGuard debug printf with NETIF_DEBUG ifdef like the other debug prints. (diff)
downloadwireguard-openbsd-5a0183c521de487e8234f0b4cda8f6ffc2ef5953.tar.xz
wireguard-openbsd-5a0183c521de487e8234f0b4cda8f6ffc2ef5953.zip
Guard debug printf with NFS_DEBUG ifdef like the other debug prints.
ok tom@
Diffstat (limited to 'sys/lib/libsa/nfs.c')
-rw-r--r--sys/lib/libsa/nfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/lib/libsa/nfs.c b/sys/lib/libsa/nfs.c
index e621f09adec..01f810d2509 100644
--- a/sys/lib/libsa/nfs.c
+++ b/sys/lib/libsa/nfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs.c,v 1.14 2016/03/14 23:08:06 krw Exp $ */
+/* $OpenBSD: nfs.c,v 1.15 2017/05/08 20:13:46 patrick Exp $ */
/* $NetBSD: nfs.c,v 1.19 1996/10/13 02:29:04 christos Exp $ */
/*-
@@ -535,8 +535,10 @@ nfs_read(struct open_file *f, void *buf, size_t size, size_t *resid)
return (errno); /* XXX - from nfs_readdata */
}
if (cc == 0) {
+#ifdef NFS_DEBUG
if (debug)
printf("nfs_read: hit EOF unexpectantly");
+#endif
goto ret;
}
fp->off += cc;