diff options
author | bde <bde@FreeBSD.org> | 1999-08-30 07:08:04 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-08-30 07:08:04 +0000 |
commit | 2115d514808c97d65cb8279536d12f603c5fd1c5 (patch) | |
tree | 7a536d81e5345060637b9a89b7767290872cd5df /sys/miscfs/nullfs | |
parent | 308b546022d07e164a704828ac1511f542a12f45 (diff) | |
download | FreeBSD-src-2115d514808c97d65cb8279536d12f603c5fd1c5.zip FreeBSD-src-2115d514808c97d65cb8279536d12f603c5fd1c5.tar.gz |
Converted the silly SAFTEY option into a new-style option by renaming it to
DIAGNOSTIC.
Fixed an English style bug in the panic messages controlled by SAFETY.
Diffstat (limited to 'sys/miscfs/nullfs')
-rw-r--r-- | sys/miscfs/nullfs/null_vnops.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/miscfs/nullfs/null_vnops.c b/sys/miscfs/nullfs/null_vnops.c index c901921..6156d0f 100644 --- a/sys/miscfs/nullfs/null_vnops.c +++ b/sys/miscfs/nullfs/null_vnops.c @@ -206,7 +206,6 @@ static int null_unlock __P((struct vop_unlock_args *ap)); * This version has been optimized for speed, throwing away some * safety checks. It should still always work, but it's not as * robust to programmer errors. - * Define SAFETY to include some error checking code. * * In general, we map all vnodes going down and unmap them on the way back. * As an exception to this, vnodes can be marked "unmapped" by setting @@ -244,13 +243,13 @@ null_bypass(ap) if (null_bug_bypass) printf ("null_bypass: %s\n", descp->vdesc_name); -#ifdef SAFETY +#ifdef DIAGNOSTIC /* * We require at least one vp. */ if (descp->vdesc_vp_offsets == NULL || descp->vdesc_vp_offsets[0] == VDESC_NO_OFFSET) - panic ("null_bypass: no vp's in map."); + panic ("null_bypass: no vp's in map"); #endif /* |