Changeset 98000fb in mainline for kernel/test


Ignore:
Timestamp:
2009-06-03T19:34:45Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
301ff30
Parents:
69e68e3
Message:

remove redundant index_t and count_t types (which were always quite ambiguous and not actually needed)

Location:
kernel/test
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/avltree/avltree1.c

    r69e68e3 r98000fb  
    195195}
    196196
    197 static void test_tree_insert(avltree_t *tree, count_t node_count)
     197static void test_tree_insert(avltree_t *tree, size_t node_count)
    198198{
    199199        unsigned int i;
     
    202202        avltree_create(tree);
    203203       
    204         TPRINTF("Inserting %" PRIc " nodes...", node_count);
     204        TPRINTF("Inserting %" PRIs " nodes...", node_count);
    205205       
    206206        for (i = 0; i < node_count; i++) {
     
    215215}
    216216
    217 static void test_tree_delete(avltree_t *tree, count_t node_count,
     217static void test_tree_delete(avltree_t *tree, size_t node_count,
    218218    int node_position)
    219219{
     
    246246}
    247247
    248 static void test_tree_delmin(avltree_t *tree, count_t node_count)
     248static void test_tree_delmin(avltree_t *tree, size_t node_count)
    249249{
    250250        unsigned int i = 0;
  • kernel/test/mm/falloc2.c

    r69e68e3 r98000fb  
    5353        int order, run, allocated, i;
    5454        uint8_t val = THREAD->tid % THREADS;
    55         index_t k;
     55        size_t k;
    5656       
    5757        void **frames =  (void **) malloc(MAX_FRAMES * sizeof(void *), FRAME_ATOMIC);
     
    8383                       
    8484                        for (i = 0; i < allocated; i++) {
    85                                 for (k = 0; k <= (((index_t) FRAME_SIZE << order) - 1); k++) {
     85                                for (k = 0; k <= (((size_t) FRAME_SIZE << order) - 1); k++) {
    8686                                        if (((uint8_t *) frames[i])[k] != val) {
    87                                                 TPRINTF("Thread #%" PRIu64 " (cpu%u): Unexpected data (%c) in block %p offset %#" PRIi "\n", THREAD->tid, CPU->id, ((char *) frames[i])[k], frames[i], k);
     87                                                TPRINTF("Thread #%" PRIu64 " (cpu%u): Unexpected data (%c) in block %p offset %#" PRIs "\n", THREAD->tid, CPU->id, ((char *) frames[i])[k], frames[i], k);
    8888                                                atomic_inc(&thread_fail);
    8989                                                goto cleanup;
  • kernel/test/mm/purge1.c

    r69e68e3 r98000fb  
    3838
    3939extern void tlb_invalidate_all(void);
    40 extern void tlb_invalidate_pages(asid_t asid, uintptr_t va, count_t cnt);
     40extern void tlb_invalidate_pages(asid_t asid, uintptr_t va, size_t cnt);
    4141
    4242char *test_purge1(void)
  • kernel/test/synch/rwlock4.c

    r69e68e3 r98000fb  
    149149       
    150150        context_save(&ctx);
    151         TPRINTF("sp=%#x, readers_in=%" PRIc "\n", ctx.sp, rwlock.readers_in);
     151        TPRINTF("sp=%#x, readers_in=%" PRIs "\n", ctx.sp, rwlock.readers_in);
    152152        TPRINTF("Creating %" PRIu32 " readers\n", rd);
    153153       
Note: See TracChangeset for help on using the changeset viewer.