Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/thread/thread1.c

    ra405563 r7e752b2  
    3535#include <stdio.h>
    3636#include <unistd.h>
     37#include <inttypes.h>
    3738#include "../tester.h"
    3839
     
    5051}
    5152
    52 char *test_thread1(void)
     53const char *test_thread1(void)
    5354{
    5455        unsigned int i;
    55         int total = 0;
     56        atomic_count_t total = 0;
    5657       
    5758        atomic_set(&finish, 1);
     
    7475        atomic_set(&finish, 0);
    7576        while (atomic_get(&threads_finished) < total) {
    76                 TPRINTF("Threads left: %u\n", total - atomic_get(&threads_finished));
     77                TPRINTF("Threads left: %" PRIua "\n",
     78                    total - atomic_get(&threads_finished));
    7779                sleep(1);
    7880        }
Note: See TracChangeset for help on using the changeset viewer.