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:
Axel Dörfler 2003-10-21 05:38:01 +00:00
parent a721098497
commit a6c27d152d

View File

@ -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;