diff options
author | 2006-01-09 12:43:16 +0000 | |
---|---|---|
committer | 2006-01-09 12:43:16 +0000 | |
commit | 4df17c52c41e4e81ea7d5c991237105e675762ac (patch) | |
tree | a8b0f579c7ee27acb168ea675daa4f77c12abbc3 /sys/xfs | |
parent | avoid anything that isn't a library in warning for SHARED_LIBS. (diff) | |
download | wireguard-openbsd-4df17c52c41e4e81ea7d5c991237105e675762ac.tar.xz wireguard-openbsd-4df17c52c41e4e81ea7d5c991237105e675762ac.zip |
Put vprint() under DIAGNOSTIC, as to save space in generated ramdisks.
Inspiration from miod@, okay deraadt@. Tested on i386, macppc and amd64.
Diffstat (limited to 'sys/xfs')
-rw-r--r-- | sys/xfs/xfs_message.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/xfs/xfs_message.c b/sys/xfs/xfs_message.c index d9dfaffa187..7f8e59241cd 100644 --- a/sys/xfs/xfs_message.c +++ b/sys/xfs/xfs_message.c @@ -442,12 +442,13 @@ gc_vnode (struct vnode *vp, return; } #endif /* __FreeBSD__ */ - - /* DIAGNOSTIC */ + +#ifdef DIAGNOSTIC if (vp->v_usecount < 0 || vp->v_writecount != 0) { vprint("vrele: bad ref count", vp); panic("vrele: ref cnt"); } +#endif /* DIAGNOSTIC */ NNPFSDEB(XDEBMSG, ("xfs_message_gc: success\n")); |