Changeset cd8ad52 in mainline for kernel/test/fpu/fpu1.c
- 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
- File:
-
- 1 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 }
Note:
See TracChangeset
for help on using the changeset viewer.