diff options
author | 2017-05-08 20:13:46 +0000 | |
---|---|---|
committer | 2017-05-08 20:13:46 +0000 | |
commit | 5a0183c521de487e8234f0b4cda8f6ffc2ef5953 (patch) | |
tree | d6cc7a7cd7898dae901d7e0c90caa1608893bb40 /sys/lib/libsa/nfs.c | |
parent | Guard debug printf with NETIF_DEBUG ifdef like the other debug prints. (diff) | |
download | wireguard-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.c | 4 |
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; |