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