diff options
author | alc <alc@FreeBSD.org> | 1999-10-30 09:09:02 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 1999-10-30 09:09:02 +0000 |
commit | 9ef42993803ac939b64a1b281b2eaf7940c317a1 (patch) | |
tree | eda3955239534c73ac6cd0e83aca162af8f42a44 /sys/vm | |
parent | 972baf2ed07dd48f4fcb04c4c8b6a0c782b88546 (diff) | |
download | FreeBSD-src-9ef42993803ac939b64a1b281b2eaf7940c317a1.zip FreeBSD-src-9ef42993803ac939b64a1b281b2eaf7940c317a1.tar.gz |
Reverse the sense of the test in the KASSERT's from the last commit.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_glue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index 3caa562..5ec101f 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -120,7 +120,7 @@ kernacc(addr, len, rw) vm_offset_t saddr, eaddr; vm_prot_t prot; - KASSERT(rw & (~VM_PROT_ALL), + KASSERT((rw & (~VM_PROT_ALL)) == 0, ("illegal ``rw'' argument to kernacc (%x)\n", rw)); prot = rw; saddr = trunc_page((vm_offset_t)addr); @@ -141,7 +141,7 @@ useracc(addr, len, rw) vm_map_t map; vm_map_entry_t save_hint; - KASSERT(rw & (~VM_PROT_ALL), + KASSERT((rw & (~VM_PROT_ALL)) == 0, ("illegal ``rw'' argument to useracc (%x)\n", rw)); prot = rw; /* |