Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/fpu/fpu1_x86.c

    rcb01e1e r7e752b2  
    8282               
    8383                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);
    8586                        atomic_inc(&threads_fault);
    8687                        break;
     
    115116               
    116117                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);
    118120                        atomic_inc(&threads_fault);
    119121                        break;
     
    123125}
    124126
    125 char *test_fpu1(void)
     127const char *test_fpu1(void)
    126128{
    127         unsigned int i, total = 0;
     129        unsigned int i;
     130        atomic_count_t total = 0;
    128131       
    129132        waitq_initialize(&can_start);
     
    156159        waitq_wakeup(&can_start, WAKEUP_ALL);
    157160       
    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));
    160163                thread_sleep(1);
    161164        }
Note: See TracChangeset for help on using the changeset viewer.