Changeset cd8ad52 in mainline for kernel/test/synch/rwlock3.c
- Timestamp:
- 2008-06-03T14:58:05Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b63f8569
- Parents:
- 7ac426e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/synch/rwlock3.c
r7ac426e rcd8ad52 46 46 47 47 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); 49 49 50 50 rwlock_read_lock(&rwlock); … … 52 52 53 53 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); 56 56 } 57 57 … … 60 60 61 61 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); 63 63 64 64 atomic_dec(&thread_count); … … 89 89 while (atomic_get(&thread_count) > 0) { 90 90 if (!quiet) 91 printf("Threads left: % d\n", atomic_get(&thread_count));91 printf("Threads left: %ld\n", atomic_get(&thread_count)); 92 92 thread_sleep(1); 93 93 }
Note:
See TracChangeset
for help on using the changeset viewer.