Changeset cd8ad52 in mainline for kernel/test/synch/rwlock3.c


Ignore:
Timestamp:
2008-06-03T14:58:05Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b63f8569
Parents:
7ac426e
Message:

proper printf formatting

File:
1 edited

Legend:

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

    r7ac426e rcd8ad52  
    4646       
    4747        if (!sh_quiet)
    48                 printf("cpu%d, tid %llu: trying to lock rwlock for reading....\n", CPU->id, THREAD->tid);
     48                printf("cpu%u, tid %" PRIu64 ": trying to lock rwlock for reading....\n", CPU->id, THREAD->tid);
    4949       
    5050        rwlock_read_lock(&rwlock);
     
    5252       
    5353        if (!sh_quiet) {
    54                 printf("cpu%d, tid %llu: success\n", CPU->id, THREAD->tid);             
    55                 printf("cpu%d, tid %llu: trying to lock rwlock for writing....\n", CPU->id, THREAD->tid);       
     54                printf("cpu%u, tid %" PRIu64 ": success\n", CPU->id, THREAD->tid);             
     55                printf("cpu%u, tid %" PRIu64 ": trying to lock rwlock for writing....\n", CPU->id, THREAD->tid);       
    5656        }
    5757
     
    6060       
    6161        if (!sh_quiet)
    62                 printf("cpu%d, tid %llu: success\n", CPU->id, THREAD->tid);
     62                printf("cpu%u, tid %" PRIu64 ": success\n", CPU->id, THREAD->tid);
    6363       
    6464        atomic_dec(&thread_count);
     
    8989        while (atomic_get(&thread_count) > 0) {
    9090                if (!quiet)
    91                         printf("Threads left: %d\n", atomic_get(&thread_count));
     91                        printf("Threads left: %ld\n", atomic_get(&thread_count));
    9292                thread_sleep(1);
    9393        }
Note: See TracChangeset for help on using the changeset viewer.