diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-14 14:17:03 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-14 14:17:03 +0100 |
commit | 4672f514591f0f7110103c4cd898909aef95b635 (patch) | |
tree | 59a7edc5fd7b1c9c567ada4ec74afe1ed30d5d15 /src/kernel/user/ipc.c | |
parent | f811e0126639c3cc14c285f2e2093d0df1b556af (diff) | |
download | kogata-4672f514591f0f7110103c4cd898909aef95b635.tar.gz kogata-4672f514591f0f7110103c4cd898909aef95b635.zip |
Fix region allocator (see changes in region.c!) ; debug spam control.
Diffstat (limited to 'src/kernel/user/ipc.c')
-rw-r--r-- | src/kernel/user/ipc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/user/ipc.c b/src/kernel/user/ipc.c index 2a43da1..0287793 100644 --- a/src/kernel/user/ipc.c +++ b/src/kernel/user/ipc.c @@ -85,8 +85,8 @@ fs_handle_pair_t make_channel(bool blocking) { ret.a->mode = ret.b->mode = FM_READ | FM_WRITE | (blocking ? FM_BLOCKING : 0); ret.a->lock = ret.b->lock = MUTEX_UNLOCKED; - dbg_printf("hREF1c0x%p\n", ret.a); - dbg_printf("hREF1c0x%p\n", ret.b); + if (SPAM_FS_REF) dbg_printf("hREF1c0x%p\n", ret.a); + if (SPAM_FS_REF) dbg_printf("hREF1c0x%p\n", ret.b); return ret; @@ -281,7 +281,7 @@ fs_handle_t* make_shm(size_t size) { h->lock = MUTEX_UNLOCKED; h->mode = FM_READ | FM_WRITE | FM_MMAP; - dbg_printf("hREF1s0x%p\n", h); + if (SPAM_FS_REF) dbg_printf("hREF1s0x%p\n", h); return h; |