Changeset 534


Ignore:
Timestamp:
Jul 29, 2014 4:59:37 AM (5 years ago)
Author:
kulshres
Message:

stats are unsigned

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/src/taping.c

    r524 r534  
    12811281    tapestats(tag, (size_t *)&stats);
    12821282    fprintf(stream, "\n*** TAPE STATS (tape %d) **********\n", (int)tag);
    1283     fprintf(stream, "Number of independents: %10zd\n", stats[NUM_INDEPENDENTS]);
    1284     fprintf(stream, "Number of dependents:   %10zd\n", stats[NUM_DEPENDENTS]);
     1283    fprintf(stream, "Number of independents: %10zu\n", stats[NUM_INDEPENDENTS]);
     1284    fprintf(stream, "Number of dependents:   %10zu\n", stats[NUM_DEPENDENTS]);
    12851285    fprintf(stream, "\n");
    1286     fprintf(stream, "Max # of live adoubles: %10zd\n", stats[NUM_MAX_LIVES]);
    1287     fprintf(stream, "Taylor stack size:      %10zd\n", stats[TAY_STACK_SIZE]);
     1286    fprintf(stream, "Max # of live adoubles: %10zu\n", stats[NUM_MAX_LIVES]);
     1287    fprintf(stream, "Taylor stack size:      %10zu\n", stats[TAY_STACK_SIZE]);
    12881288    fprintf(stream, "\n");
    1289     fprintf(stream, "Number of operations:   %10zd\n", stats[NUM_OPERATIONS]);
    1290     fprintf(stream, "Number of locations:    %10zd\n", stats[NUM_LOCATIONS]);
    1291     fprintf(stream, "Number of values:       %10zd\n", stats[NUM_VALUES]);
     1289    fprintf(stream, "Number of operations:   %10zu\n", stats[NUM_OPERATIONS]);
     1290    fprintf(stream, "Number of locations:    %10zu\n", stats[NUM_LOCATIONS]);
     1291    fprintf(stream, "Number of values:       %10zu\n", stats[NUM_VALUES]);
    12921292    fprintf(stream, "\n");
    1293     fprintf(stream, "Operation file written: %10zd\n", stats[OP_FILE_ACCESS]);
    1294     fprintf(stream, "Location file written:  %10zd\n", stats[LOC_FILE_ACCESS]);
    1295     fprintf(stream, "Value file written:     %10zd\n", stats[VAL_FILE_ACCESS]);
     1293    fprintf(stream, "Operation file written: %10zu\n", stats[OP_FILE_ACCESS]);
     1294    fprintf(stream, "Location file written:  %10zu\n", stats[LOC_FILE_ACCESS]);
     1295    fprintf(stream, "Value file written:     %10zu\n", stats[VAL_FILE_ACCESS]);
    12961296    fprintf(stream, "\n");
    1297     fprintf(stream, "Operation buffer size:  %10zd\n", stats[OP_BUFFER_SIZE]);
    1298     fprintf(stream, "Location buffer size:   %10zd\n", stats[LOC_BUFFER_SIZE]);
    1299     fprintf(stream, "Value buffer size:      %10zd\n", stats[VAL_BUFFER_SIZE]);
    1300     fprintf(stream, "Taylor buffer size:     %10zd\n", stats[TAY_BUFFER_SIZE]);
     1297    fprintf(stream, "Operation buffer size:  %10zu\n", stats[OP_BUFFER_SIZE]);
     1298    fprintf(stream, "Location buffer size:   %10zu\n", stats[LOC_BUFFER_SIZE]);
     1299    fprintf(stream, "Value buffer size:      %10zu\n", stats[VAL_BUFFER_SIZE]);
     1300    fprintf(stream, "Taylor buffer size:     %10zu\n", stats[TAY_BUFFER_SIZE]);
    13011301    fprintf(stream, "\n");
    1302     fprintf(stream, "Operation type size:    %10zd\n",
     1302    fprintf(stream, "Operation type size:    %10zu\n",
    13031303            (size_t)sizeof(unsigned char));
    1304     fprintf(stream, "Location type size:     %10zd\n", (size_t)sizeof(locint));
    1305     fprintf(stream, "Value type size:        %10zd\n", (size_t)sizeof(double));
    1306     fprintf(stream, "Taylor type size:       %10zd\n", (size_t)sizeof(revreal));
     1304    fprintf(stream, "Location type size:     %10zu\n", (size_t)sizeof(locint));
     1305    fprintf(stream, "Value type size:        %10zu\n", (size_t)sizeof(double));
     1306    fprintf(stream, "Taylor type size:       %10zu\n", (size_t)sizeof(revreal));
    13071307    fprintf(stream, "**********************************\n\n");
    13081308}
Note: See TracChangeset for help on using the changeset viewer.