Changes in kernel/test/fpu/fpu1_x86.c [cb01e1e:7e752b2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/fpu/fpu1_x86.c
rcb01e1e r7e752b2 82 82 83 83 if ((int) (100000000 * e) != E_10e8) { 84 TPRINTF("tid%" PRIu64 ": e*10e8=%zd should be %" PRIun "\n", THREAD->tid, (unative_t) (100000000 * e), (unative_t) E_10e8); 84 TPRINTF("tid%" PRIu64 ": e*10e8=%" PRIun " should be %" PRIun "\n", 85 THREAD->tid, (unative_t) (100000000 * e), (unative_t) E_10e8); 85 86 atomic_inc(&threads_fault); 86 87 break; … … 115 116 116 117 if ((int) (100000000 * pi) != PI_10e8) { 117 TPRINTF("tid%" PRIu64 ": pi*10e8=%zd should be %" PRIun "\n", THREAD->tid, (unative_t) (100000000 * pi), (unative_t) PI_10e8); 118 TPRINTF("tid%" PRIu64 ": pi*10e8=%" PRIun " should be %" PRIun "\n", 119 THREAD->tid, (unative_t) (100000000 * pi), (unative_t) PI_10e8); 118 120 atomic_inc(&threads_fault); 119 121 break; … … 123 125 } 124 126 125 c har *test_fpu1(void)127 const char *test_fpu1(void) 126 128 { 127 unsigned int i, total = 0; 129 unsigned int i; 130 atomic_count_t total = 0; 128 131 129 132 waitq_initialize(&can_start); … … 156 159 waitq_wakeup(&can_start, WAKEUP_ALL); 157 160 158 while (atomic_get(&threads_ok) != (long)total) {159 TPRINTF("Threads left: % d\n", total - atomic_get(&threads_ok));161 while (atomic_get(&threads_ok) != total) { 162 TPRINTF("Threads left: %" PRIua "\n", total - atomic_get(&threads_ok)); 160 163 thread_sleep(1); 161 164 }
Note:
See TracChangeset
for help on using the changeset viewer.