Changeset 7e752b2 in mainline for kernel/test/synch/semaphore1.c


Ignore:
Timestamp:
2010-11-26T01:33:20Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf61d3a
Parents:
202f57b
Message:
  • correct printf() formatting strings and corresponding arguments
  • minor cstyle changes and other small fixes
File:
1 edited

Legend:

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

    r202f57b r7e752b2  
    8888                producers = (4 - i) * PRODUCERS;
    8989               
    90                 TPRINTF("Creating %d consumers and %d producers...", consumers, producers);
     90                TPRINTF("Creating %" PRIua " consumers and %" PRIua " producers...",
     91                    consumers, producers);
    9192               
    9293                for (j = 0; j < (CONSUMERS + PRODUCERS) / 2; j++) {
     
    113114               
    114115                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);
    116118                        thread_sleep(1);
    117119                }
Note: See TracChangeset for help on using the changeset viewer.