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