Changeset deada67 in mainline for kernel/test/mm/falloc1.c


Ignore:
Timestamp:
2006-12-19T17:54:50Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
730376d
Parents:
6536a4a9
Message:

quiet variants of tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/mm/falloc1.c

    r6536a4a9 rdeada67  
    5656        for (run = 0; run < TEST_RUNS; run++) {
    5757                for (order = 0; order <= MAX_ORDER; order++) {
    58                         printf("Allocating %d frames blocks ... ", 1 << order);
     58                        if (!quiet)
     59                                printf("Allocating %d frames blocks ... ", 1 << order);
     60                       
    5961                        allocated = 0;
    6062                        for (i = 0; i < MAX_FRAMES >> order; i++) {
     
    6264                               
    6365                                if (ALIGN_UP(frames[allocated], FRAME_SIZE << order) != frames[allocated]) {
    64                                         printf("Block at address %p (size %dK) is not aligned\n", frames[allocated], (FRAME_SIZE << order) >> 10);
     66                                        if (!quiet)
     67                                                printf("Block at address %p (size %dK) is not aligned\n", frames[allocated], (FRAME_SIZE << order) >> 10);
    6568                                        return "Test failed";
    6669                                }
     
    6972                                        allocated++;
    7073                                else {
    71                                         printf("done. ");
     74                                        if (!quiet)
     75                                                printf("done. ");
    7276                                        break;
    7377                                }
    7478                        }
    7579                       
    76                         printf("%d blocks allocated.\n", allocated);
     80                        if (!quiet)
     81                                printf("%d blocks allocated.\n", allocated);
    7782               
    7883                        if (run) {
     
    8287                                results[order] = allocated;
    8388                       
    84                         printf("Deallocating ... ");
     89                        if (!quiet)
     90                                printf("Deallocating ... ");
     91                       
    8592                        for (i = 0; i < allocated; i++)
    8693                                frame_free(KA2PA(frames[i]));
    87                         printf("done.\n");
     94                       
     95                        if (!quiet)
     96                                printf("done.\n");
    8897                }
    8998        }
Note: See TracChangeset for help on using the changeset viewer.