Changeset 280a27e in mainline for test/synch/rwlock5/test.c
- Timestamp:
- 2006-04-16T13:16:44Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 50de918
- Parents:
- c624b96
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/synch/rwlock5/test.c
rc624b96 r280a27e 92 92 writers = (4-i)*WRITERS; 93 93 94 printf("Creating % d readers and %d writers...", readers, writers);94 printf("Creating %ld readers and %ld writers...", readers, writers); 95 95 96 96 for (j=0; j<(READERS+WRITERS)/2; j++) { … … 117 117 118 118 while (items_read.count != readers || items_written.count != writers) { 119 printf("% d readers remaining, %d writers remaining, readers_in=%d\n", readers - items_read.count, writers - items_written.count, rwlock.readers_in);119 printf("%zd readers remaining, %zd writers remaining, readers_in=%zd\n", readers - items_read.count, writers - items_written.count, rwlock.readers_in); 120 120 thread_usleep(100000); 121 121 }
Note:
See TracChangeset
for help on using the changeset viewer.