Changes in kernel/test/mm/falloc1.c [cb01e1e:7e752b2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/mm/falloc1.c
rcb01e1e r7e752b2 33 33 #include <mm/slab.h> 34 34 #include <arch/mm/page.h> 35 #include < arch/types.h>35 #include <typedefs.h> 36 36 #include <debug.h> 37 37 #include <align.h> … … 41 41 #define TEST_RUNS 2 42 42 43 c har *test_falloc1(void) {43 const char *test_falloc1(void) { 44 44 uintptr_t *frames 45 45 = (uintptr_t *) malloc(MAX_FRAMES * sizeof(uintptr_t), 0); … … 64 64 65 65 if (ALIGN_UP(frames[allocated], FRAME_SIZE << order) != frames[allocated]) { 66 TPRINTF("Block at address %p (size %dK) is not aligned\n", frames[allocated], (FRAME_SIZE << order) >> 10); 66 TPRINTF("Block at address %p (size %dK) is not aligned\n", 67 (void *) frames[allocated], (FRAME_SIZE << order) >> 10); 67 68 return "Test failed"; 68 69 }
Note:
See TracChangeset
for help on using the changeset viewer.