Changeset cd8ad52 in mainline for kernel/test/fpu
- 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/fpu
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/fpu/fpu1.c
r7ac426e rcd8ad52 127 127 if ((int) (100000000 * e) != E_10e8) { 128 128 if (!sh_quiet) 129 printf("tid% llu: e*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (100000000 * e), (unative_t) E_10e8);129 printf("tid%" PRIu64 ": e*10e8=%zd should be %" PRIun "\n", THREAD->tid, (unative_t) (100000000 * e), (unative_t) E_10e8); 130 130 atomic_inc(&threads_fault); 131 131 break; … … 162 162 if ((int) (1000000 * pi) != PI_10e8) { 163 163 if (!sh_quiet) 164 printf("tid% llu: pi*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (1000000 * pi), (unative_t) (PI_10e8 / 100));164 printf("tid%" PRIu64 ": pi*10e8=%zd should be %" PRIun "\n", THREAD->tid, (unative_t) (1000000 * pi), (unative_t) (PI_10e8 / 100)); 165 165 atomic_inc(&threads_fault); 166 166 break; … … 169 169 if ((int) (100000000 * pi) != PI_10e8) { 170 170 if (!sh_quiet) 171 printf("tid% llu: pi*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (100000000 * pi), (unative_t) PI_10e8);171 printf("tid%" PRIu64 ": pi*10e8=%zd should be %" PRIun "\n", THREAD->tid, (unative_t) (100000000 * pi), (unative_t) PI_10e8); 172 172 atomic_inc(&threads_fault); 173 173 break; … … 188 188 189 189 if (!quiet) 190 printf("Creating % dthreads... ", 2 * THREADS);190 printf("Creating %u threads... ", 2 * THREADS); 191 191 192 192 for (i = 0; i < THREADS; i++) { … … 195 195 if (!(t = thread_create(e, NULL, TASK, 0, "e", false))) { 196 196 if (!quiet) 197 printf("could not create thread % d\n", 2 * i);197 printf("could not create thread %u\n", 2 * i); 198 198 break; 199 199 } … … 203 203 if (!(t = thread_create(pi, NULL, TASK, 0, "pi", false))) { 204 204 if (!quiet) 205 printf("could not create thread % d\n", 2 * i + 1);205 printf("could not create thread %u\n", 2 * i + 1); 206 206 break; 207 207 } -
kernel/test/fpu/mips2.c
r7ac426e rcd8ad52 73 73 if (arg != after_arg) { 74 74 if (!sh_quiet) 75 printf("General reg tid% llu: arg(%d) != %d\n", THREAD->tid, arg, after_arg);75 printf("General reg tid%" PRIu64 ": arg(%d) != %d\n", THREAD->tid, arg, after_arg); 76 76 atomic_inc(&threads_fault); 77 77 break; … … 105 105 if (arg != after_arg) { 106 106 if (!sh_quiet) 107 printf("General reg tid% llu: arg(%d) != %d\n", THREAD->tid, arg, after_arg);107 printf("General reg tid%" PRIu64 ": arg(%d) != %d\n", THREAD->tid, arg, after_arg); 108 108 atomic_inc(&threads_fault); 109 109 break; … … 124 124 125 125 if (!quiet) 126 printf("Creating % dthreads... ", 2 * THREADS);126 printf("Creating %u threads... ", 2 * THREADS); 127 127 128 128 for (i = 0; i < THREADS; i++) { … … 131 131 if (!(t = thread_create(testit1, (void *) ((unative_t) 2 * i), TASK, 0, "testit1", false))) { 132 132 if (!quiet) 133 printf("could not create thread % d\n", 2 * i);133 printf("could not create thread %u\n", 2 * i); 134 134 break; 135 135 } … … 139 139 if (!(t = thread_create(testit2, (void *) ((unative_t) 2 * i + 1), TASK, 0, "testit2", false))) { 140 140 if (!quiet) 141 printf("could not create thread % d\n", 2 * i + 1);141 printf("could not create thread %u\n", 2 * i + 1); 142 142 break; 143 143 } -
kernel/test/fpu/sse1.c
r7ac426e rcd8ad52 73 73 if (arg != after_arg) { 74 74 if (!sh_quiet) 75 printf("tid% llu: arg(%d) != %d\n", THREAD->tid, arg, after_arg);75 printf("tid%" PRIu64 ": arg(%d) != %d\n", THREAD->tid, arg, after_arg); 76 76 atomic_inc(&threads_fault); 77 77 break; … … 105 105 if (arg != after_arg) { 106 106 if (!sh_quiet) 107 printf("tid% llu: arg(%d) != %d\n", THREAD->tid, arg, after_arg);107 printf("tid%" PRIu64 ": arg(%d) != %d\n", THREAD->tid, arg, after_arg); 108 108 atomic_inc(&threads_fault); 109 109 break; … … 124 124 125 125 if (!quiet) 126 printf("Creating % dthreads... ", 2 * THREADS);126 printf("Creating %u threads... ", 2 * THREADS); 127 127 128 128 for (i = 0; i < THREADS; i++) { … … 131 131 if (!(t = thread_create(testit1, (void *) ((unative_t) 2 * i), TASK, 0, "testit1", false))) { 132 132 if (!quiet) 133 printf("could not create thread % d\n", 2 * i);133 printf("could not create thread %u\n", 2 * i); 134 134 break; 135 135 } … … 139 139 if (!(t = thread_create(testit2, (void *) ((unative_t) 2 * i + 1), TASK, 0, "testit2", false))) { 140 140 if (!quiet) 141 printf("could not create thread % d\n", 2 * i + 1);141 printf("could not create thread %u\n", 2 * i + 1); 142 142 break; 143 143 }
Note:
See TracChangeset
for help on using the changeset viewer.