Changeset eb522e8 in mainline for kernel/test/synch/semaphore1.c
- Timestamp:
- 2011-06-01T08:43:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d6c1f1
- Parents:
- 9e2e715 (diff), e51a514 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/synch/semaphore1.c
r9e2e715 reb522e8 88 88 producers = (4 - i) * PRODUCERS; 89 89 90 TPRINTF("Creating %d consumers and %d producers...", consumers, producers); 90 TPRINTF("Creating %" PRIua " consumers and %" PRIua " producers...", 91 consumers, producers); 91 92 92 93 for (j = 0; j < (CONSUMERS + PRODUCERS) / 2; j++) { … … 113 114 114 115 while ((items_consumed.count != consumers) || (items_produced.count != producers)) { 115 TPRINTF("%d consumers remaining, %d producers remaining\n", consumers - items_consumed.count, producers - items_produced.count); 116 TPRINTF("%" PRIua " consumers remaining, %" PRIua " producers remaining\n", 117 consumers - items_consumed.count, producers - items_produced.count); 116 118 thread_sleep(1); 117 119 }
Note:
See TracChangeset
for help on using the changeset viewer.