Changeset cd8ad52 in mainline for kernel/test/mm
- Timestamp:
- 2008-06-03T14:58:05Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b63f8569
- Parents:
- 7ac426e
- Location:
- kernel/test/mm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/mm/falloc2.c
r7ac426e rcd8ad52 59 59 if (frames == NULL) { 60 60 if (!sh_quiet) 61 printf("Thread #% llu (cpu%d): Unable to allocate frames\n", THREAD->tid, CPU->id);61 printf("Thread #%" PRIu64 " (cpu%u): Unable to allocate frames\n", THREAD->tid, CPU->id); 62 62 atomic_inc(&thread_fail); 63 63 atomic_dec(&thread_count); … … 70 70 for (order = 0; order <= MAX_ORDER; order++) { 71 71 if (!sh_quiet) 72 printf("Thread #% llu (cpu%d): Allocating %d frames blocks ... \n", THREAD->tid, CPU->id, 1 << order);72 printf("Thread #%" PRIu64 " (cpu%u): Allocating %d frames blocks ... \n", THREAD->tid, CPU->id, 1 << order); 73 73 74 74 allocated = 0; … … 83 83 84 84 if (!sh_quiet) 85 printf("Thread #% llu (cpu%d): %d blocks allocated.\n", THREAD->tid, CPU->id, allocated);85 printf("Thread #%" PRIu64 " (cpu%u): %d blocks allocated.\n", THREAD->tid, CPU->id, allocated); 86 86 87 87 if (!sh_quiet) 88 printf("Thread #% llu (cpu%d): Deallocating ... \n", THREAD->tid, CPU->id);88 printf("Thread #%" PRIu64 " (cpu%u): Deallocating ... \n", THREAD->tid, CPU->id); 89 89 90 90 for (i = 0; i < allocated; i++) { … … 92 92 if (((uint8_t *) frames[i])[k] != val) { 93 93 if (!sh_quiet) 94 printf("Thread #% llu (cpu%d): Unexpected data (%d) in block %p offset %#zx\n", THREAD->tid, CPU->id, ((char *) frames[i])[k], frames[i], k);94 printf("Thread #%" PRIu64 " (cpu%u): Unexpected data (%c) in block %p offset %#" PRIi "\n", THREAD->tid, CPU->id, ((char *) frames[i])[k], frames[i], k); 95 95 atomic_inc(&thread_fail); 96 96 goto cleanup; … … 101 101 102 102 if (!sh_quiet) 103 printf("Thread #% llu (cpu%d): Finished run.\n", THREAD->tid, CPU->id);103 printf("Thread #%" PRIu64 " (cpu%u): Finished run.\n", THREAD->tid, CPU->id); 104 104 } 105 105 } … … 109 109 110 110 if (!sh_quiet) 111 printf("Thread #% llu (cpu%d): Exiting\n", THREAD->tid, CPU->id);111 printf("Thread #%" PRIu64 " (cpu%u): Exiting\n", THREAD->tid, CPU->id); 112 112 atomic_dec(&thread_count); 113 113 } … … 125 125 if (!thrd) { 126 126 if (!quiet) 127 printf("Could not create thread % d\n", i);127 printf("Could not create thread %u\n", i); 128 128 break; 129 129 } … … 133 133 while (atomic_get(&thread_count) > 0) { 134 134 if (!quiet) 135 printf("Threads left: % d\n", atomic_get(&thread_count));135 printf("Threads left: %ld\n", atomic_get(&thread_count)); 136 136 thread_sleep(1); 137 137 } -
kernel/test/mm/slab1.c
r7ac426e rcd8ad52 138 138 139 139 if (!sh_quiet) 140 printf("Starting thread #% llu...\n", THREAD->tid);140 printf("Starting thread #%" PRIu64 "...\n", THREAD->tid); 141 141 142 142 for (j = 0; j < 10; j++) { … … 152 152 153 153 if (!sh_quiet) 154 printf("Thread # %llufinished\n", THREAD->tid);154 printf("Thread #" PRIu64 " finished\n", THREAD->tid); 155 155 156 156 semaphore_up(&thr_sem); -
kernel/test/mm/slab2.c
r7ac426e rcd8ad52 151 151 152 152 if (!sh_quiet) 153 printf("Starting thread #% llu...\n",THREAD->tid);153 printf("Starting thread #%" PRIu64 "...\n", THREAD->tid); 154 154 155 155 /* Alloc all */ 156 156 if (!sh_quiet) 157 printf("Thread #% lluallocating...\n", THREAD->tid);157 printf("Thread #%" PRIu64 " allocating...\n", THREAD->tid); 158 158 159 159 while (1) { … … 167 167 168 168 if (!sh_quiet) 169 printf("Thread #% llureleasing...\n", THREAD->tid);169 printf("Thread #%" PRIu64 " releasing...\n", THREAD->tid); 170 170 171 171 while (data) { … … 177 177 178 178 if (!sh_quiet) 179 printf("Thread #% lluallocating...\n", THREAD->tid);179 printf("Thread #%" PRIu64 " allocating...\n", THREAD->tid); 180 180 181 181 while (1) { … … 189 189 190 190 if (!sh_quiet) 191 printf("Thread #% llureleasing...\n", THREAD->tid);191 printf("Thread #%" PRIu64 " releasing...\n", THREAD->tid); 192 192 193 193 while (data) { … … 199 199 200 200 if (!sh_quiet) 201 printf("Thread #% llufinished\n", THREAD->tid);201 printf("Thread #%" PRIu64 " finished\n", THREAD->tid); 202 202 203 203 slab_print_list();
Note:
See TracChangeset
for help on using the changeset viewer.