Module Name: src Committed By: matt Date: Fri Jan 7 01:14:25 UTC 2011
Modified Files: src/sys/lib/libkern [matt-nb5-pq3]: libkern.h Log Message: Fix KASSERTMSG. To generate a diff of this commit: cvs rdiff -u -r1.82.4.2 -r1.82.4.2.4.1 src/sys/lib/libkern/libkern.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/lib/libkern/libkern.h diff -u src/sys/lib/libkern/libkern.h:1.82.4.2 src/sys/lib/libkern/libkern.h:1.82.4.2.4.1 --- src/sys/lib/libkern/libkern.h:1.82.4.2 Sun May 3 17:31:42 2009 +++ src/sys/lib/libkern/libkern.h Fri Jan 7 01:14:24 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: libkern.h,v 1.82.4.2 2009/05/03 17:31:42 snj Exp $ */ +/* $NetBSD: libkern.h,v 1.82.4.2.4.1 2011/01/07 01:14:24 matt Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -208,7 +208,7 @@ #else /* DIAGNOSTIC */ #define _DIAGASSERT(a) assert(a) #define KASSERTMSG(e, msg) do { \ - if (__predict_false((e))) \ + if (__predict_false(!(e))) \ panic msg; \ } while (/*CONSTCOND*/ 0) #ifdef __STDC__