Changeset 98000fb in mainline for kernel/test/mm/falloc2.c


Ignore:
Timestamp:
2009-06-03T19:34:45Z (15 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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.