Now prints out a message when the allocation function is called.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5112 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a721098497
commit
a6c27d152d
@ -5,12 +5,17 @@
|
||||
|
||||
|
||||
#include <boot/platform.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
status_t
|
||||
platform_allocate_region(void **_address, size_t size, uint8 protection)
|
||||
{
|
||||
printf("platform_allocate_region(address = %p, size = %lu, protection = %u)\n",
|
||||
*_address, size, protection);
|
||||
|
||||
void *address = malloc(size);
|
||||
if (address == NULL)
|
||||
return B_NO_MEMORY;
|
||||
|
Loading…
Reference in New Issue
Block a user