diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-05-08 20:13:47 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-05-08 20:13:47 +0000 |
commit | 4f064e59157c028e83fbc97050c17e3f140a1052 (patch) | |
tree | cbe1b306fa42641ef10edc5f9cc46e0f90031bcf | |
parent | 9ae25b78bbd3b812173fbeb406bc34cf3ac46c2d (diff) |
Guard debug printf with NFS_DEBUG ifdef like the other debug prints.
ok tom@
-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; |