Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dev/lockstat Fix build with DIAGNOSTIC:



details:   https://anonhg.NetBSD.org/src/rev/aa7ba064f14f
branches:  trunk
changeset: 839275:aa7ba064f14f
user:      rin <rin%NetBSD.org@localhost>
date:      Tue Feb 12 14:31:45 2019 +0000

description:
Fix build with DIAGNOSTIC:
ASSERT() is enabled ifdef DEBUG, not DIAGNOSTIC.

diffstat:

 external/cddl/osnet/dev/lockstat/lockstat.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4cd676a36e25 -r aa7ba064f14f external/cddl/osnet/dev/lockstat/lockstat.c
--- a/external/cddl/osnet/dev/lockstat/lockstat.c       Tue Feb 12 14:17:44 2019 +0000
+++ b/external/cddl/osnet/dev/lockstat/lockstat.c       Tue Feb 12 14:31:45 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lockstat.c,v 1.9 2018/05/28 21:05:03 chs Exp $ */
+/*     $NetBSD: lockstat.c,v 1.10 2019/02/12 14:31:45 rin Exp $        */
 
 /*
  * CDDL HEADER START
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lockstat.c,v 1.9 2018/05/28 21:05:03 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lockstat.c,v 1.10 2019/02/12 14:31:45 rin Exp $");
 
 #include <sys/types.h>
 #include <sys/proc.h>
@@ -210,7 +210,7 @@
 lockstat_fini(void)
 {
        int error;
-       bool ok __diagused;
+       bool ok __debugused;
 
        error = dtrace_unregister(lockstat_id);
        if (error) {



Home | Main Index | Thread Index | Old Index