From 2283c4343fd16c2c8dc570b45c8aea852e306e0c Mon Sep 17 00:00:00 2001 From: alc Date: Tue, 31 Jan 2006 19:06:51 +0000 Subject: Change #if defined(DIAGNOSTIC) to KASSERT. --- sys/vm/vm_page.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys/vm/vm_page.c') diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index c882364..caf9125 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -809,10 +809,9 @@ loop: */ vm_page_lock_queues(); if ((m = vm_page_select_cache(color)) == NULL) { -#if defined(DIAGNOSTIC) - if (cnt.v_cache_count > 0) - printf("vm_page_alloc(NORMAL): missing pages on cache queue: %d\n", cnt.v_cache_count); -#endif + KASSERT(cnt.v_cache_count == 0, + ("vm_page_alloc: cache queue is missing %d pages", + cnt.v_cache_count)); vm_page_unlock_queues(); atomic_add_int(&vm_pageout_deficit, 1); pagedaemon_wakeup(); -- cgit v1.1