Changeset 98000fb in mainline for kernel/test/mm/falloc2.c
- Timestamp:
- 2009-06-03T19:34:45Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 301ff30
- Parents:
- 69e68e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/mm/falloc2.c
r69e68e3 r98000fb 53 53 int order, run, allocated, i; 54 54 uint8_t val = THREAD->tid % THREADS; 55 index_t k;55 size_t k; 56 56 57 57 void **frames = (void **) malloc(MAX_FRAMES * sizeof(void *), FRAME_ATOMIC); … … 83 83 84 84 for (i = 0; i < allocated; i++) { 85 for (k = 0; k <= ((( index_t) FRAME_SIZE << order) - 1); k++) {85 for (k = 0; k <= (((size_t) FRAME_SIZE << order) - 1); k++) { 86 86 if (((uint8_t *) frames[i])[k] != val) { 87 TPRINTF("Thread #%" PRIu64 " (cpu%u): Unexpected data (%c) in block %p offset %#" PRI i"\n", THREAD->tid, CPU->id, ((char *) frames[i])[k], frames[i], k);87 TPRINTF("Thread #%" PRIu64 " (cpu%u): Unexpected data (%c) in block %p offset %#" PRIs "\n", THREAD->tid, CPU->id, ((char *) frames[i])[k], frames[i], k); 88 88 atomic_inc(&thread_fail); 89 89 goto cleanup;
Note:
See TracChangeset
for help on using the changeset viewer.