[ipv6] Fix formatting on a DBG line
[gpxe.git] / src / tests / umalloc_test.c
blob7a3618684c82cff07415999938b1364abfa30ac1
1 #include <stdio.h>
2 #include <gpxe/uaccess.h>
3 #include <gpxe/umalloc.h>
4 #include <gpxe/memmap.h>
6 void umalloc_test ( void ) {
7 struct memory_map memmap;
8 userptr_t bob;
9 userptr_t fred;
11 printf ( "Before allocation:\n" );
12 get_memmap ( &memmap );
14 bob = umalloc ( 1234 );
15 bob = urealloc ( bob, 12345 );
16 fred = umalloc ( 999 );
18 printf ( "After allocation:\n" );
19 get_memmap ( &memmap );
21 ufree ( bob );
22 ufree ( fred );
24 printf ( "After freeing:\n" );
25 get_memmap ( &memmap );