diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-07-18 14:29:36 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-07-18 14:29:36 +0000 |
commit | d53d46674101a22a8b28b4b30aebfb38ac6d81cd (patch) | |
tree | ddbfcb2d830f8a471c5ab127d0f5f91bdcd6d22f /sys | |
parent | 591d15cdd8d0d5cc271b5e17ccc8f87b8c294ec6 (diff) |
Change some annoying DIAGNOSTIC printfs to DEBUG.
From NetBSD.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/uvm/uvm_vnode.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/uvm/uvm_vnode.c b/sys/uvm/uvm_vnode.c index 9d035720307..021d1f9dcff 100644 --- a/sys/uvm/uvm_vnode.c +++ b/sys/uvm/uvm_vnode.c @@ -1,5 +1,5 @@ -/* $OpenBSD: uvm_vnode.c,v 1.14 2001/07/18 10:47:05 art Exp $ */ -/* $NetBSD: uvm_vnode.c,v 1.26 1999/09/12 01:17:42 chs Exp $ */ +/* $OpenBSD: uvm_vnode.c,v 1.15 2001/07/18 14:29:35 art Exp $ */ +/* $NetBSD: uvm_vnode.c,v 1.27 1999/10/19 16:04:45 chs Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -348,13 +348,13 @@ static void uvn_reference(uobj) struct uvm_object *uobj; { -#ifdef DIAGNOSTIC +#ifdef DEBUG struct uvm_vnode *uvn = (struct uvm_vnode *) uobj; #endif UVMHIST_FUNC("uvn_reference"); UVMHIST_CALLED(maphist); simple_lock(&uobj->vmobjlock); -#ifdef DIAGNOSTIC +#ifdef DEBUG if ((uvn->u_flags & UVM_VNODE_VALID) == 0) { printf("uvn_reference: ref=%d, flags=0x%x\n", uvn->u_flags, uobj->uo_refs); @@ -457,7 +457,7 @@ uvn_detach(uobj) */ if (uobj->uo_npages) { /* I/O pending. iodone will free */ -#ifdef DIAGNOSTIC +#ifdef DEBUG /* * XXXCDC: very unlikely to happen until we have async i/o * so print a little info message in case it does. @@ -603,7 +603,7 @@ uvm_vnp_terminate(vp) */ while (uvn->u_obj.uo_npages) { -#ifdef DIAGNOSTIC +#ifdef DEBUG struct vm_page *pp; for (pp = uvn->u_obj.memq.tqh_first ; pp != NULL ; pp = pp->listq.tqe_next) { @@ -858,10 +858,11 @@ uvn_flush(uobj, start, stop, flags) } else { start = trunc_page(start); stop = round_page(stop); +#ifdef DEBUG if (stop > round_page(uvn->u_size)) printf("uvn_flush: strange, got an out of range " "flush (fixed)\n"); - +#endif by_list = (uobj->uo_npages <= ((stop - start) >> PAGE_SHIFT) * UVN_HASH_PENALTY); } @@ -2040,7 +2041,7 @@ uvm_vnp_sync(mp) for (uvn = uvn_sync_q.sqh_first ; uvn ; uvn = uvn->u_syncq.sqe_next) { simple_lock(&uvn->u_obj.vmobjlock); -#ifdef DIAGNOSTIC +#ifdef DEBUG if (uvn->u_flags & UVM_VNODE_DYING) { printf("uvm_vnp_sync: dying vnode on sync list\n"); } |