Skip to content

Commit

Permalink
Small changes. Added some debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
champo committed Nov 24, 2011
1 parent f5fdfe3 commit 74d44ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
VFS:
- Something that lets us write a file
Wishlist:
- Support numpad
2 changes: 2 additions & 0 deletions src/system/mm/allocator.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ void* allocator(size_t size, size_t* allocatedSize) {
if (memory) {
*allocatedSize = PAGE_SIZE * pages;
} else {
log_error("Failed to allocate memory for context %u\n", get_malloc_context());
*allocatedSize = 0;
}

Expand Down Expand Up @@ -256,6 +257,7 @@ struct Pages* reserve_pages(struct Process* owner, int pages) {

void* start = allocPages(pages);
if (start == NULL) {
log_error("Failed to allocate %d pages for %d\n", pages, owner->pid);
return NULL;
}

Expand Down

0 comments on commit 74d44ed

Please sign in to comment.