diff options
author | Miles Bader <miles@gnu.org> | 1995-10-04 21:37:11 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-10-04 21:37:11 +0000 |
commit | 772acf0df89b6f13d420bb30efbe1e1ff71ad619 (patch) | |
tree | 30eb26e1aa8b5e10756d40d3003c43f3e368c93b | |
parent | 1250b118d99ee719b2da50f958498f10b56bed4d (diff) |
(position): Get rid of debugging noise.
-rw-r--r-- | devio/window.c | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/devio/window.c b/devio/window.c index 06f9b0fd..f7df045d 100644 --- a/devio/window.c +++ b/devio/window.c @@ -22,8 +22,6 @@ #include "window.h" #include "mem.h" - -#include "dev.h" /* for MSG & debug */ /* ---------------------------------------------------------------- */ @@ -77,15 +75,6 @@ position(struct window *win, vm_offset_t pos, vm_size_t len) vm_offset_t win_beg = win->pos; vm_offset_t win_end = win_beg + win->size; -#ifdef MSG - if (debug) - { - mutex_lock(&debug_lock); - fprintf(debug, "position: need window on 0x%x[%d]\n", pos, len); - mutex_unlock(&debug_lock); - } -#endif - if (pos >= win_beg && end <= win_end) /* The request is totally satisfied by our current position. */ return 0; @@ -99,18 +88,7 @@ position(struct window *win, vm_offset_t pos, vm_size_t len) int prot = VM_PROT_READ | (win->read_only ? 0 : VM_PROT_WRITE); if (win->size > 0) - { -#ifdef MSG - if (debug) - { - mutex_lock(&debug_lock); - fprintf(debug, "position: deallocating window 0x%x[%d]\n", - win_beg, win->size); - mutex_unlock(&debug_lock); - } -#endif - vm_deallocate(mach_task_self(), win->buffer, win->size); - } + vm_deallocate(mach_task_self(), win->buffer, win->size); win->pos = trunc_page(pos); win->size = round_page(len + (pos - win->pos)); @@ -122,16 +100,6 @@ position(struct window *win, vm_offset_t pos, vm_size_t len) if (win->pos + win->size > win->max_pos) win->size = win->max_pos - win->pos; -#ifdef MSG - if (debug) - { - mutex_lock(&debug_lock); - fprintf(debug, "position: mapping window 0x%x[%d]\n", - win->pos, win->size); - mutex_unlock(&debug_lock); - } -#endif - return vm_map(mach_task_self(), &win->buffer, win->size, 0, 1, win->memobj, win->pos, 0, prot, prot, VM_INHERIT_NONE); |