KASSERT fails when the condition is false, not when it is true.

This commit is contained in:
Kirk McKusick 2007-02-27 07:34:28 +00:00
parent a5e9bfc6f9
commit 34505cb376

View File

@ -112,7 +112,7 @@ int extattr_check_cred(struct vnode *vp, int attrnamespace,
/* User-level definition of KASSERT for macros above */
#define KASSERT(cond, str) do { \
if (cond) { printf("panic: "); printf(str); printf("\n"); exit(1); } \
if (!(cond)) { printf("panic: "); printf(str); printf("\n"); exit(1); }\
} while (0)
struct iovec;