diff options
author | peter <peter@FreeBSD.org> | 1998-05-31 18:23:24 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-05-31 18:23:24 +0000 |
commit | feb54238cc37d1ec740a6af8221820b3686de880 (patch) | |
tree | 99cf0218e6f14a65514a1c3e8c410cc850ce5a3a /sys | |
parent | c50a18d36198ccf7c910eaa7d796f37ec0b7301d (diff) | |
download | FreeBSD-src-feb54238cc37d1ec740a6af8221820b3686de880.zip FreeBSD-src-feb54238cc37d1ec740a6af8221820b3686de880.tar.gz |
#ifdef a diagnostic printf
Obtained from: NetBSD
Diffstat (limited to 'sys')
-rw-r--r-- | sys/nfs/nfs_vnops.c | 4 | ||||
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index 96b5762..994dc6d 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95 - * $Id: nfs_vnops.c,v 1.92 1998/05/31 17:27:55 peter Exp $ + * $Id: nfs_vnops.c,v 1.93 1998/05/31 17:48:05 peter Exp $ */ @@ -399,7 +399,9 @@ nfs_open(ap) int error; if (vp->v_type != VREG && vp->v_type != VDIR && vp->v_type != VLNK) { +#ifdef DIAGNOSTIC printf("open eacces vtyp=%d\n",vp->v_type); +#endif return (EACCES); } /* diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c index 96b5762..994dc6d 100644 --- a/sys/nfsclient/nfs_vnops.c +++ b/sys/nfsclient/nfs_vnops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95 - * $Id: nfs_vnops.c,v 1.92 1998/05/31 17:27:55 peter Exp $ + * $Id: nfs_vnops.c,v 1.93 1998/05/31 17:48:05 peter Exp $ */ @@ -399,7 +399,9 @@ nfs_open(ap) int error; if (vp->v_type != VREG && vp->v_type != VDIR && vp->v_type != VLNK) { +#ifdef DIAGNOSTIC printf("open eacces vtyp=%d\n",vp->v_type); +#endif return (EACCES); } /* |