summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2007-05-09 02:46:12 +0000
committerderaadt <deraadt@openbsd.org>2007-05-09 02:46:12 +0000
commitf70ef8d5722101d3cf614ab46cbc7f8d9f43ddb4 (patch)
treee3a05ec704da17ffb9a0fb72349398adea89e804
parentBe more consistent about when dmesg is attached to template. (diff)
downloadwireguard-openbsd-f70ef8d5722101d3cf614ab46cbc7f8d9f43ddb4.tar.xz
wireguard-openbsd-f70ef8d5722101d3cf614ab46cbc7f8d9f43ddb4.zip
lockmgr_printinfo() calls only if DIAGNOSTIC
-rw-r--r--sys/isofs/udf/udf_vnops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/isofs/udf/udf_vnops.c b/sys/isofs/udf/udf_vnops.c
index 231c0f7ff90..4b18031a13e 100644
--- a/sys/isofs/udf/udf_vnops.c
+++ b/sys/isofs/udf/udf_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udf_vnops.c,v 1.24 2007/04/10 17:47:55 miod Exp $ */
+/* $OpenBSD: udf_vnops.c,v 1.25 2007/05/09 02:46:12 deraadt Exp $ */
/*
* Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
@@ -951,9 +951,10 @@ udf_print(void *v)
* Complete the information given by vprint().
*/
printf("tag VT_UDF, hash id %u\n", up->u_ino);
+#ifdef DIAGNOSTIC
lockmgr_printinfo(&up->u_lock);
printf("\n");
-
+#endif
return (0);
}