Ignore:
Timestamp:
04/27/07 14:47:30 (14 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
c20af2a
Parents:
bd4bec9
Message:

misc and port reports now write to files - all reports now do so
Changed almost all the %llu format strings to use PRIu64 which should reduce the warnings on 64 bit machines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracereport/ttl_report.c

    rbd4bec9 rf3576f5  
    88static stat_t ttl_stat[3][256] = {{{0,0}}} ;
    99static bool suppress[3] = {true,true,true};
    10 
    11 FILE *out = NULL;
    1210
    1311void ttl_per_packet(struct libtrace_packet_t *packet)
     
    3230{
    3331        int i,j;
    34         out = fopen("ttl.rpt", "w");
     32        FILE *out = fopen("ttl.rpt", "w");
    3533        if (!out) {
    3634                perror("fopen");
     
    6361                        }
    6462                       
    65                         fprintf(out, "\t%16llu %16llu\n",
     63                        fprintf(out, "\t%16" PRIu64 " %16" PRIu64 "\n",
    6664                                        ttl_stat[j][i].bytes,
    6765                                        ttl_stat[j][i].count);
Note: See TracChangeset for help on using the changeset viewer.