summaryrefslogtreecommitdiff
path: root/kalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kalloc.c')
-rw-r--r--kalloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kalloc.c b/kalloc.c
index 83ed7e8..cc6d380 100644
--- a/kalloc.c
+++ b/kalloc.c
@@ -56,7 +56,7 @@ kfree(char *v)
{
struct run *r;
- if((uint)v % PGSIZE || v < end || v2p(v) >= PHYSTOP)
+ if((uint)v % PGSIZE || v < end || v2p(v) >= PHYSTOP)
panic("kfree");
// Fill with junk to catch dangling refs.
@@ -82,7 +82,6 @@ kalloc(void)
if(r)
kmem.freelist = r->next;
release(&kmem.lock);
- cprintf("kalloc: 0x%x\n", r);
return (char*)r;
}