Changeset 201abde in mainline for kernel/test/synch/semaphore2.c


Ignore:
Timestamp:
2007-04-07T20:06:52Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e58979
Parents:
6adbe3c2
Message:

make thread ID 64 bit (task ID is 64 bit already)
cleanup thread syscalls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/synch/semaphore2.c

    r6adbe3c2 r201abde  
    6868       
    6969        to = random(20000);
    70         printf("cpu%d, tid %d down+ (%d)\n", CPU->id, THREAD->tid, to);
     70        printf("cpu%d, tid %llu down+ (%d)\n", CPU->id, THREAD->tid, to);
    7171        rc = semaphore_down_timeout(&sem, to);
    7272        if (SYNCH_FAILED(rc)) {
    73                 printf("cpu%d, tid %d down!\n", CPU->id, THREAD->tid);
     73                printf("cpu%d, tid %llu down!\n", CPU->id, THREAD->tid);
    7474                return;
    7575        }
    7676       
    77         printf("cpu%d, tid %d down=\n", CPU->id, THREAD->tid); 
     77        printf("cpu%d, tid %llu down=\n", CPU->id, THREAD->tid);       
    7878        thread_usleep(random(30000));
    7979       
    8080        semaphore_up(&sem);
    81         printf("cpu%d, tid %d up\n", CPU->id, THREAD->tid);
     81        printf("cpu%d, tid %llu up\n", CPU->id, THREAD->tid);
    8282}
    8383
Note: See TracChangeset for help on using the changeset viewer.